1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-05 17:55:24 +02:00
tldr/pages/common/zcat.md

25 lines
686 B
Markdown
Raw Normal View History

2016-01-16 01:48:34 -08:00
# zcat
> Print data from `gzip` compressed files to `stdout`.
> More information: <https://www.gnu.org/software/gzip/manual/gzip.html>.
2016-01-16 01:48:34 -08:00
- Print the uncompressed contents of a `gzip` archive to `stdout`:
2016-01-16 01:48:34 -08:00
`zcat {{path/to/file.txt.gz}}`
2019-03-06 12:33:35 +01:00
- Print compression details of a `gzip` archive to `stdout`:
2019-03-06 12:33:35 +01: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}}`