courses.edx.org: z Command Family
Command | Description |
---|---|
$ zcat compressed-file.txt.gz | To view a compressed file |
$ zless <filename>.gz or $ zmore <filename>.gz | To page through a compressed file |
$ zgrep -i less test-file.txt.gz | To search inside a compressed file |
$ zdiff filename1.txt.gz filename2.txt.gz | To compare two compressed files |