In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
In this article, let's take a look at the contents of a compressed file using linux's zcat command. There is a certain reference value, friends in need can refer to, hope to help you.
The zcat command is used in situations where the contents of the files in the package can be displayed without actually extracting the files. Zcat is a command-line utility for viewing the contents of a compressed file without unzipping it. It extends the compressed file to standard output so that you can view its contents. In addition, zcat is exactly the same as running the gunzip-c command.
Syntax format: zcat [parameters]
-S use this option when the suffix is not a standard package suffix-c write the contents of the file to the label output-d perform the decompression operation-l display the list of files in the package-L display software license information-Q disable warning message-r perform recursive operation on the directory-t test the integrity of the compressed file-V display instruction version information-l faster compression speed-9 higher compression ratio
Reference example:
Without unzipping the file, display the contents of the file in the package:
[root@linuxcool ~] # zcat file.gz
View multiple compressed files:
[root@linuxcool ~] # zcat file1.gz file2.gz
View the contents of a normal file:
[root@linuxcool] # zcat-f file
Get the attributes of the compressed file (compressed size, uncompressed size, ratio-compression ratio):
[root@linuxcool ~] # zcat-l file.gz
Prohibit all warnings:
[root@linuxcool ~] # zcat-Q file.gz above is a brief introduction to using linux's zcat command to view the contents of a compressed file. Of course, you have to use the above differences in detail before you understand it. If you want to know more, 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.
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.