mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-14 17:59:47 +00:00
Update cheatsheets
This commit is contained in:
18
tldr/zcat
18
tldr/zcat
@@ -5,13 +5,25 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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>.
|
||||
|
||||
- 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`:
|
||||
|
||||
`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}}`
|
||||
|
||||
Reference in New Issue
Block a user