2025-03-14 21:59:59 -06:00
|
|
|
# zcat
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
> Print data from `gzip` compressed files to `stdout`.
|
2025-03-14 21:59:59 -06:00
|
|
|
> More information: <https://www.gnu.org/software/gzip/manual/gzip.html>.
|
|
|
|
|
|
|
|
|
|
- Print the uncompressed contents of a `gzip` archive to `stdout`:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`zcat {{path/to/file.txt.gz}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Print compression details of a `gzip` archive to `stdout`:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`zcat {{[-l|--list]}} {{path/to/file.txt.gz}}`
|
|
|
|
|
|
|
|
|
|
- Test the integrity of a compressed file verbosely:
|
|
|
|
|
|
|
|
|
|
`zcat {{[-v|--verbose]}} {{[-t|--test]}} {{path/to/file.txt.gz}}`
|
|
|
|
|
|
|
|
|
|
- Suppress all warnings when decompressing a file:
|
|
|
|
|
|
|
|
|
|
`zcat {{[-q|--quiet]}} {{path/to/file.txt.gz}}`
|
|
|
|
|
|
|
|
|
|
- Avoid any system crashes when decompressing a file (slower output):
|
|
|
|
|
|
|
|
|
|
`zcat --synchronous {{path/to/file.txt.gz}}`
|