Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Linux basic command-zcat

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Zcat

Extract the files with gzip compression and send the decompression results to standard output.

The scope of this command: RedHat, RHEL, Ubuntu, CentOS, SUSE, openSUSE, Fedora.

1. Grammar

Zcat [- fhVL] file

2. List of options

Option

Description

-h |-- help

Help information

-V |-- version

Display command version information

-f |-- force

Enforcement

-L |-- licence

Show the version of gzip and exit

3. Examples

1) View compressed package information

[root@localhost weijie] # zcat-l 1.c.gz

Compressed uncompressed ratio uncompressed_name

70 53 9.4% 1.c

2) decompress the file to standard output

[root@localhost weijie] # zcat 1.c.gz

Hello world

I am david.

I love linux

Love code.

A Linux learning platform has been made, and a prototype has come out at present, which you can refer to and use.

Link: https://pan.baidu.com/s/1GOLVU2CbpBNGtunztVpaCQ password: n7bk

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report