All of the commands below assume that you are within the same directory that the compressed file is in.
Type ls {enter} to be sure
How to unzip a .tar.gz/.tgz file?
To extract .tar.gz or .tgz files, run the following command in a terminal:
tar -zxvf file.tar.gz (or file.tgz)
This will normally create a new directory based on the filename. If you want to extract a filename called file.tar (without the .gz) simply run:
tar -xvf file.tar
For more information, in a terminal, type man tar
http://www.linuxhelp.net/newbies/#unzip
Great tip, thanks.
felix
August 30th, 2008
Thanks for the good information, it helped me.
srikanth
September 23rd, 2008
Спасибо за пост! Добавил блог в RSS-ридер, теперь читать буду регулярно..
fliniLobalify
November 12th, 2008
But how to extract zip files and as well rar files
thanks
casa annonces
December 6th, 2008
Try this:
unzip pics.zip
unrar file.rar
More info:
http://www.cyberciti.biz/tips/how-can-i-zipping-and-unzipping-files-under-linux.html
http://www.cyberciti.biz/faq/open-rar-file-or-extract-rar-files-under-linux-or-unix/
admin
December 8th, 2008