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

Summary of some common decompression commands under Linux

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

Share

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

This article mainly explains the "summary of some commonly used decompression commands under Linux". The explanation in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "some decompression commands commonly used under Linux".

I often encounter the decompression of the following files, .tar, .gz. Some examples and parameters are given, which can be applied directly at that time.

1. Test.tar / /-> tar-xzvf test.tar

2. Test.tar.gz /-- > gzip-d test.tar.gz or gunzip test.tar.gz

3. Test.tgz / /-> tar-xzf test.tgz

4. Test.bz2 /-- > bzip2-d test.bz2 or bunzip2 test.bz2

5. Test.tar.bz2 / /-> tar-xjf test.tar.bz2

6. Test.Z /-- > uncompress test.Z

7. Test.tar.Z / /-> tar-xZf test.tar.Z

8. Test.rar /-- > unrar e test.rar

9. Test.zip /-- > unzip test.zip

To sum up:

1. With .tar, you can use tar to decompress.

2. Rar,zip files, which are decompressed with unrar,unzip respectively, are also easier to remember.

Common parameter formats:

-x: decompression

-v: is a complex output that shows all processes

-f: is the specified file

-z: is in gz format

Other parameters:

-c: create compressed files

-t: view content

-r append files to the end of the compressed archive file

-u: update the files in the original package

-j: with bz2 attribute

-Z: with compress attribute

-O: unlock files to standard output

Thank you for your reading, the above is the "summary of some commonly used decompression commands under Linux". After the study of this article, I believe you have a deeper understanding of the summary of some commonly used decompression commands under Linux, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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