Zcat

From Psygen Wiki
Jump to: navigation, search

zcat is used to view the contents of zipped files.


View the contents of a zip file:

zcat file1.txt.gz


View the contents of a zip file one screen at a time:

zless filename.gz


Search inside a zipped file:

zgrep foo myfile.gz