In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you the use of linux's gzip command to compress and extract files. I hope you will gain a lot after reading this article. Let's discuss it together.
The gzip command, known as "GNUzip" in English, is a tool commonly used to compress files. Gzip is a widely used compression program. After the file is compressed by it, its name will be followed by a number of ".gz" extensions.
Gzip is a command that is often used in Linux system to compress and decompress files, which is convenient and easy to use. Gzip can not only be used to compress large, less used files to save disk space, but also can be used with tar commands to form a more popular compressed file format in Linux operating systems. According to statistics, the gzip command has a compression ratio of 60% to 70% for text files. Reducing file size has two obvious benefits: one is that you can reduce storage space, and the other is that you can reduce the transfer time when transferring files over the network.
Syntax format: gzip [parameters]
Common parameters:
-a use ASCII text mode-d unzip compressed file-f forcibly compressed file-l list information about compressed file-c output the compressed file to standard output device, do not change the original file-r recursive processing, all files and subdirectories under the specified directory are processed together-Q does not display warning message
Reference example
Compress each file in the rancher-v2.2.0 directory into a .gz file:
[root@linuxcool ~] # gzip *
Extract each compressed file in the above example and list the detailed information:
[root@linuxcool] # gzip-dv *
Recursively extract the directory:
[root@linuxcool] # gzip-dr rancher.gz has finished reading this article, I believe you have some understanding of using linux's gzip command to compress and decompress files, want to know more about it, welcome to follow the industry information channel, thank you for reading!
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.