mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-20 12:55:44 +02:00
zcat: edit page and add examples (#16901)
This commit is contained in:
parent
44b4dede4d
commit
c2f2ac89d8
1 changed files with 15 additions and 3 deletions
|
@ -1,12 +1,24 @@
|
||||||
# zcat
|
# zcat
|
||||||
|
|
||||||
> Print data from `gzip` compressed files.
|
> Print data from `gzip` compressed files to `stdout`.
|
||||||
> More information: <https://www.gnu.org/software/gzip/manual/gzip.html>.
|
> More information: <https://www.gnu.org/software/gzip/manual/gzip.html>.
|
||||||
|
|
||||||
- Print the uncompressed contents of a `gzip` archive to `stdout`:
|
- Print the uncompressed contents of a `gzip` archive to `stdout`:
|
||||||
|
|
||||||
`zcat {{file.txt.gz}}`
|
`zcat {{path/to/file.txt.gz}}`
|
||||||
|
|
||||||
- Print compression details of a `gzip` archive to `stdout`:
|
- Print compression details of a `gzip` archive to `stdout`:
|
||||||
|
|
||||||
`zcat {{[-l|--list]}} {{file.txt.gz}}`
|
`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}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue