In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to use the zcat command of Linux". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn how to use the zcat command of Linux.
The Linux zcat command is used in situations where the contents of the files in the package can be displayed without actually extracting the files.
1. The first example shows how to view the contents of a normal file using the cat command, compress it with the gzip command, and view the contents of the compressed file using zcat, as shown in the figure.
$cat users.list$ gzip users.list$ zcat users.list.gz
View the contents of a compressed file in Linux
To view multiple compressed files, use the following command with a file name, as shown in the figure.
$zcat users.list.gz apps.list.gz
View the contents of multiple compressed files in Linux
To see the contents of a normal file, use the-f flag, for example, similar to the cat command.
$zcat-f users.list
View the contents of the Linux file
4. To enable paging, you can use fewer and fewer commands displayed (see also
$zcat users.list.gz | more$ zcat users.list.gz | less
* * 5.compression * to obtain the attributes of a compressed file (compressed size, uncompressed size, ratio-compression ratio (0.0%, if unknown), uncompressed_name (name of uncompressed file), use the-l flag.
$zcat-l users.list.gz
View compressed file properties in Linux
To disable all warnings, use the-Q flag, as shown in the figure.
$zcat-Q users.list.gz
For more information, see the zcat man page.
Man zcat so far, I believe you have a better understanding of "how to use Linux's zcat command". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.