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

How to decompress compressed files in linux

angryTom
Release: 2019-11-02 17:53:36
Original
5316 people have browsed it

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
Copy after login

There is also a type of file with the suffix *.tar in the Linux system.

The decompression command is:

tar -xvf  filename.tar
Copy after login

The decompression command:

bzip2 -d filename.bz2
Copy after login

Summary:

1, *.tar

tar –xvf
Copy after login

2, *.gz

gzip -d
gunzip
Copy after login

3, *.tar.gz and *.tgz

tar –xzf
Copy after login

4, *.bz2

bzip2 -d
bunzip2
Copy after login

5, *.tar.bz2

tar –xjf
Copy after login

6, *.Z

 uncompress
Copy after login

7, *.tar.Z

tar –xZf
Copy after login

8, *.rar

unrar e
Copy after login

9. *.zip

unzip
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template