Select Page

Linux users frequently have to uncompress .tar, .gzip, or .zip files. There are GUI utilities that can do this, but there may be instances where you have to do this from a Linux command shell. The following commands covers the most used compression formats for Linux.
Uncompressing a .tar File
tar -xvf file.tar
Uncompressing a .gz File
gunzip file.gz
Uncompressing a .zip File
unzip file.zip
Uncompressing a .tar.gz File
gunzip file.tar.gz
tar -xvf file.tar
Or you can uncompress both formats in one command:
tar -zxvf file.tar.gz

Print Friendly, PDF & Email
Translate ยป