In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article shows you what compression commands are available in linux. The content is concise and easy to understand. It will definitely make your eyes shine. I hope you can gain something from the detailed introduction of this article.
Linux has three main compression methods:
1. gzip: It is recognized as the fastest compression speed. When compressing large files, it is more obvious than other compression methods. It has the longest history and is the most widely used compression method.
2. bzip: The compressed file is small, but the usability is not as good as gzip.
3, xz: is the latest compression method, can automatically provide the best compression ratio
Recommended compression when marked with suffix:
Example: Compress the Golden.apk file in/root/with different compression methods
First check the size of the Golden.apk file:
You can see that the size of the Golden.apk file is 187 MB
a. Gzip the Golden.apk file into a Golden.apk.tar.gz file:
b. Use bzip2 to compress the Golden.apk file into Golden.apk.tar.bz2 file:
From the above figure, you can see that there is an error in the red box. The reason for this error is that the bzip2 package is missing. You need to install a bzip2 package.
Recompress after installation:
In the process of compression, we can find:
Compression speed: gz > bz2 > xz
Compression ratio: xz > bz2 > gz
What are the compression commands in linux? Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserves, please pay attention to 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.