Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

What is the difference between gunzip and unzip? Tried to search but couldn't find anything relevant with this.

share|improve this question
There was no need to search something. All you had to do just to open man unzip and then open man gunzip. All differences are there. ;) –  rush Sep 20 '12 at 12:42
Hmmm. Thanks for the advise :) –  mtk Sep 20 '12 at 13:14
Or for a concise one-line description, whatis gunzip unzip. –  jw013 Sep 20 '12 at 17:20

1 Answer 1

up vote 2 down vote accepted

unzip decompress zip algorithm same *.zip files and gunzip decompress gz algorithm that same *.gz files. If you migrated from windows, You have many compression algorithm in UNIX world such as *.7z , *.gz , *.bz2 and so on. Also you can compress file which already archived with tar command: such as :

tar -zcvf mydir.tar.gz mydir #gz and tar
tar -jcvf mydir.tar.bz2 mydir #bz2 and tar 
share|improve this answer
tar -Jcvf mydir.tar.xz mydir #xz and tar –  vonbrand Jan 16 '13 at 10:56
tar --use-compress-program=funky-compress cvf mydir.tar.fc mydir #Some other compression –  vonbrand Jan 16 '13 at 10:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.