How to unzip a file in Linux
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
Didn't find what you were looking for? Try these links:
"The only way of finding the limits of the possible is by going beyond them into the impossible." -
Arthur C. Clarke
felix
30 Aug, 2008
Great tip, thanks.
srikanth
23 Sep, 2008
Thanks for the good information, it helped me.
casa annonces
6 Dec, 2008
But how to extract zip files and as well rar files
thanks
admin
8 Dec, 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/