Home > Article > Operation and Maintenance > How to decompress files in linux
How to decompress files in Linux
Linux provides a very simple function to decompress *.zip files .
Decompression command: unzip filename.zip
Recommended: "Linux Tutorial"
Also available in Linux system There is a type of file with the suffix *.tar.
The decompression command is: tar -xvf filename.tar.
The decompression command is: bzip2 -d filename.bz2
1. Use tar –xvf to decompress *.tar. 2. Decompress *.gz with gzip -d or gunzip. 3. Decompress *.tar.gz and *.tgz with tar –xzf. 4. Use *.bz2. bzip2 -d or use bunzip2 to decompress 5. *.tar.bz2 uses tar –xjf to decompress 6. *.Z uses uncompress to decompress 7. *.tar.Z uses tar –xZf to decompress 8. *.rar uses unrar e to decompress 9. *.zip Use unzip to decompress
The above is the detailed content of How to decompress files in linux. For more information, please follow other related articles on the PHP Chinese website!