Click to See Complete Forum and Search --> : Uncompressing files, please help.


r@nd0m @cce$
02-09-2001, 02:55 PM
Can somebody please tell me how to decompress a .tar.bz2 file?

I'm not familiar with the extension, nor do I know what to search for in oder to get help.

Thanks.

demian
02-09-2001, 03:35 PM
bzcat filename.tar.bz2 | tar xv

Radar
02-09-2001, 03:46 PM
tar -zxvf filename.tar.gz
(=tape archiver) Untar a tarred and compressed tarball (*.tar.gz or *.tgz) that you downloaded from the Internet.
tar -xvf filename.tar
Untar a tarred but uncompressed tarball (*.tar).

tar czvpf /var/backups/mybackup.tar.gz /home
cd /; tar xzvpf /var/backups/mybackup.tar.gz '*/myfile.rtf'
(as root) Create a backup of /home to a compressed file. The second command shows how to restore a file from the backup.

gunzip filename.gz
Decompress a zipped file (*.gz" or *.z). Use gzip (also zip or compress) if you wanted to compress files to this file format.

zcat filename.gz | more
(=zip cat) Display the contents of a compress file.

bunzip2 filename.bz2
(=big unzip) Decompress a file (*.bz2) zipped with bzip2 compression utility. Used for big files.

unzip filename.zip
Decompress a file (*.zip) zipped with a compression utility compatible with PKZIP for DOS.

unarj e filename.arj
Extract the content of an *.arj archive.

uudecode -o outputfile filename
Decode a file encoded with uuencode. uu-encoded files are typically used for transfer of non-text files in e-mail (uuencode transforms any file into an ASCII file).


http://sunsite.dk/linux-newbie/Linux_commands.htm#file_compression

r@nd0m @cce$
02-09-2001, 05:19 PM
Thanxs guys.