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 > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to use the zcat command in Linux. It is very detailed and has a certain reference value. Friends who are interested must finish it!
The Linux common command zcat command is used in situations where the contents of the files in the package can be displayed without really unzipping 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.
Grammatical 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 a list of files in the package-L display software license information-Q disable warning message-r perform a 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@linux265 ~] # zcat file.gz
View multiple compressed files:
[root@linux265 ~] # zcat file1.gz file2.gz
View the contents of a normal file:
[root@linux265] # zcat-f file
Get the attributes of the compressed file (compressed size, uncompressed size, ratio-compression ratio):
[root@linux265 ~] # zcat-l file.gz
Prohibit all warnings:
[root@linux265] # zcat-Q file.gz is all the contents of this article entitled "how to use zcat commands in Linux". Thank you for reading! Hope to share the content to help you, more related 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.
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.