Home  >  Article  >  Operation and Maintenance  >  How to decompress compressed files in linux

How to decompress compressed files in linux

angryTom
angryTomOriginal
2019-11-02 16:54:445263browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:linux installation stepsNext article:linux installation steps