The zcat
allows you to look at a compressed file.
- To view the content of a compressed file:
~$ zcat test.txt.gz
Hello World
- It can also Works with multiple files:
~$ zcat test2.txt.gz test.txt.gz
hello
Hello world
The general syntax for the zcat
command is as follows:
zcat [ -n ] [ -V ] [ File ... ]