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