Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Dec 102010
 

Extract a bzipped tar file

Answer:

Normally tar is combined with gzip as the most common usage, however, sometimes people use bzip2 instead for maximum compression rate. File in such format usually have the file name like: program.tar.bz2

To extract it using a single command:

# tar -jxvf program.tar.bz2

The key is the argument - j

Dec 032010
 

Determine file type using the file command

Answer:

If you want to determine file type, you can try the file command:

# file /usr/share/perl5/Time/Zone.pm
/usr/share/perl5/Time/Zone.pm: Perl5 module source text

# file /usr/share/vim/vim72/doc/usr_90.txt
/usr/share/vim/vim72/doc/usr_90.txt: ASCII English text