Linux command Zcat

Source: Internet
Author: User
Tags gz file

Zcat command to view a compressed file in gzip format
Zcat file.gz > Test.txt View the contents of a compressed file and import the contents into a file Test.txt

The Zcat command can also decompress the data and display the extracted file contents on the screen, but after running the Zcat command, the contents of the compressed file do not change and are still stored on the hard disk in a compressed manner.

Zcat file.tar.gz | Tar xvf– unzip. tar.gz file

Cat [-ABEENSTTUV] [--help] [--version] FileName
The cat command connects the file string to the basic output, followed by > filename, and the result is entered in filename
Parameters:
-N or--number the number of rows for all outputs starting from 1
-B or--number-nonblank and-n similar, except for blank lines not numbered
-S or--squeeze-blank when you encounter a blank line that has more than two consecutive lines, replace the blank line with one line
-V or--show-nonprinting

Linux command Zcat

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.