Month: August 2010

How to copy a speardsheet from Excel to Thunderbird without lose the line

I always send email contains some Excel spreadsheet to customer or managers. When I copy a spreadsheed from Excel to Thunderbird message, our receiver can not see the line of this spreadsheet in this meassge.
I found a temporary solution on and it works.
Tips : If you copy from Excel and then into Word, then copy from Word into Thunderbird it works fine.

hehe, it’s better for us to search on Google before thinking about the solution right ! Just my thinkin’.

Source : Excel Tables won’t show lines/grid in Thunderbird. Help

What is the different between /dev/st0 and /dev/nst0 ???

Last week, our system meet a problem relate to backup data on tape.
Tape Drive has some problem, so that we need to erase the data on /dev/nst0 but actually we are backing up the data on /dev/st0.
Does anybody know the different between /dev/st0 and /dev/nst0 ???

I read on an ebook, and found that /dev/nst0 uses nonrewinding device file. Is that true ?

18.5.2. Device Files

Before discussing actual backup procedures, a word on so-called
device files is
necessary. When performing backup operations to tape and other removable media,
you must specify the device using its device file. These files are stored in
/dev and are understood by the kernel to
stimulate the use of device drivers that control the device. Archiving programs
that use the device files need no knowledge of how to make the device work. Here
are some typical device files you may find on Linux systems:


First SCSI tape drive

Did I Rewind That Tape?

When using tape drives, the kernel driver for devices such as
/dev/st0 and /dev/ft0 automatically sends a rewind command after any
operation. However, there may be times when rewinding the tape is not desirable.
Since the archive program has no knowledge of how to send special instructions
to the device, a nonrewinding device file exists that instructs the driver to
omit the rewind instruction. These files have a leading n added to the filename. For example, the nonrewinding
device file for /dev/st0 is /dev/nst0. When using
nonrewinding devices, the tape is left at the location just after the last
operation by the archive program. This allows the addition of more archives to
the same tape.

Source : LPI Linux Certification in a Nutshell, 2nd Edition.

Some useful command on Linux/Unix

Today, I receive some request from our mate.

He wants to rename a file which begin a "-" character. haha. Searching on Google and I found this solution.
Thanks guys !

Rename file starting with a dash(-)

If having problem renaming a file that starts with a dash:

Since the file name begins with a ‘-‘ it looks like an option to the
command. You need to force it to not look like an option. Put a ./
in the front of it. Or give it the full file name path. Or tell the
command you are through with options by using the double dash to end
all option processing. This is common to most traditional UNIX

cp ./* /some/folder
cp — * /some/folder

And the same for other utilities too.

mv ./-stuff differentstuff
mv — -stuff differentstuff

theo :