Skip to content

Commit 9de2086

Browse files
authored
gunzip, zcat: convert to alias; gzip: refresh page (#19999)
1 parent 980eb78 commit 9de2086

File tree

3 files changed

+12
-42
lines changed

3 files changed

+12
-42
lines changed

pages/common/gunzip.md

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,7 @@
11
# gunzip
22

3-
> Extract files from a `gzip` (`.gz`) archive.
4-
> More information: <https://manned.org/gunzip>.
3+
> This command is an alias of `gzip --decompress`.
54
6-
- Extract a file from an archive, replacing the original file if it exists:
5+
- View documentation for the original command:
76

8-
`gunzip {{archive.tar.gz}}`
9-
10-
- Extract a file to a target destination:
11-
12-
`gunzip {{[-c|--stdout]}} {{archive.tar.gz}} > {{archive.tar}}`
13-
14-
- Extract a file and keep the archive file:
15-
16-
`gunzip {{[-k|--keep]}} {{archive.tar.gz}}`
17-
18-
- List the contents of a compressed file:
19-
20-
`gunzip {{[-l|--list]}} {{file.txt.gz}}`
21-
22-
- Decompress an archive from `stdin`:
23-
24-
`cat {{path/to/archive.gz}} | gunzip`
7+
`tldr gzip`

pages/common/gzip.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111

1212
`gzip {{[-d|--decompress]}} {{path/to/file.gz}}`
1313

14+
- Display the name and reduction percentage for each file compressed:
15+
16+
`gzip {{[-v|--verbose]}} {{path/to/file.gz}}`
17+
1418
- Compress a file, keeping the original file:
1519

1620
`gzip {{[-k|--keep]}} {{path/to/file}}`
@@ -27,6 +31,6 @@
2731

2832
`gzip -{{1..9}} {{[-c|--stdout]}} {{path/to/file}} > {{path/to/compressed_file.gz}}`
2933

30-
- Display the name and reduction percentage for each file compressed or decompressed:
34+
- List the contents of a compressed file:
3135

32-
`gzip {{[-vd|--verbose --decompress]}} {{path/to/file.gz}}`
36+
`gzip {{[-l|--list]}} {{path/to/file.txt.gz}}`

pages/common/zcat.md

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,7 @@
11
# zcat
22

3-
> Print data from `gzip` compressed files to `stdout`.
4-
> More information: <https://www.gnu.org/software/gzip/manual/gzip.html>.
3+
> This command is an alias of `gzip --stdout --decompress`.
54
6-
- Print the uncompressed contents of a `gzip` archive to `stdout`:
5+
- View documentation for the original command:
76

8-
`zcat {{path/to/file.txt.gz}}`
9-
10-
- Print compression details of a `gzip` archive to `stdout`:
11-
12-
`zcat {{[-l|--list]}} {{path/to/file.txt.gz}}`
13-
14-
- Test the integrity of a compressed file verbosely:
15-
16-
`zcat {{[-v|--verbose]}} {{[-t|--test]}} {{path/to/file.txt.gz}}`
17-
18-
- Suppress all warnings when decompressing a file:
19-
20-
`zcat {{[-q|--quiet]}} {{path/to/file.txt.gz}}`
21-
22-
- Avoid any system crashes when decompressing a file (slower output):
23-
24-
`zcat --synchronous {{path/to/file.txt.gz}}`
7+
`tldr gzip`

0 commit comments

Comments
 (0)