Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the Linux compression and decompression commands

2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "what are the Linux compression and decompression commands", the content is simple and clear, and I hope it can help you solve your doubts. Let the editor lead you to study and learn what are the Linux compression and decompression commands.

Linux compression and decompression is not just one, there are many ways to choose, even if the same command is followed by different options, then the effect is different. Here is a summary of Linux compression and decompression commands, so as to be helpful in future work.

Description: the tar command only unpacks or packages without z, j, Z options, and does not compress it.

◆ suffix .tar

Decompression command: tar xvf InFile.tar

Compression command: tar cvf OutFile.tar InFile

Compressible file type: folder

◆ suffix .tar.gz

Decompression command: tar zxvf InFile.tar.gz

Compression command: tar zcvf OutFile.tar.gz InFile

Compressible file type: folder

◆ suffix .tar.bz2

Decompression command: tar jxvf InFile.tar.bz2

Compression command: tar jcvf OutFile.tar.bz2 InFile

Compressible file type: folder

◆ suffix .tar.Z

Decompression command: tar Zxvf InFile.tar.Z

Compression command: tar Zcvf OutFile.tar.Z InFile

Compressible file type: folder

◆ suffix .gz

Extract command: gzip-d InFile.gz or gunzip InFile.gz

Compression command: gzip InFile

Compressible file type: normal file / packaged file

◆ suffix .zip

Decompression command: unzip InFile.zip

Compression command: zip OutFile.zip InFile

Compressible file type: normal file list / packaged file

◆ suffix .bz2

Extract command: bzip2-d InFile.bz2 or bunzip2 InFile.bz2

Compression command: bzip2-z InFile

Compressible file type: normal file / packaged file

◆ suffix .Z

Decompression command: uncompress InFile.Z

Compression command: compress InFile

Compressible file types: packaged fil

◆ suffix .rar

Extract command: rar x InFile.rar

Compression command: rar an InFile

Compressible file type: folder / normal file list / packaged file

The above is all the contents of the article "what are the Linux compression and decompression commands?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report