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