From 28d7f4332e448269f2031a263b9bf93d883cfc34 Mon Sep 17 00:00:00 2001 From: Lena <126529524+acuteenvy@users.noreply.github.com> Date: Thu, 7 Sep 2023 07:06:05 +0200 Subject: [PATCH] zstd, unzstd: update page; zstd{cat,mt}: add alias page (#10683) --- pages/common/unzstd.md | 15 +++------------ pages/common/zstd.md | 4 ++-- pages/common/zstdcat.md | 7 +++++++ pages/common/zstdmt.md | 7 +++++++ 4 files changed, 19 insertions(+), 14 deletions(-) create mode 100644 pages/common/zstdcat.md create mode 100644 pages/common/zstdmt.md diff --git a/pages/common/unzstd.md b/pages/common/unzstd.md index 5770b7f64..cec9fa7dd 100644 --- a/pages/common/unzstd.md +++ b/pages/common/unzstd.md @@ -1,16 +1,7 @@ # unzstd -> Decompress files with Zstandard compression. -> More information: . +> This command is an alias of `zstd --decompress`. -- Decompress files: +- View documentation for the original command: -`unzstd {{path/to/file1.ztd path/to/file2.ztd ...}}` - -- Decompress a file into a specific output file: - -`unzstd {{path/to/compressed.ztd}} -o {{path/to/extracted_file}}` - -- Display information about a compressed file: - -`unzip --list {{path/to/file.zst}}` +`tldr zstd` diff --git a/pages/common/zstd.md b/pages/common/zstd.md index 4b8d7838f..4e51ae93d 100644 --- a/pages/common/zstd.md +++ b/pages/common/zstd.md @@ -9,11 +9,11 @@ - Decompress a file: -`zstd -d {{path/to/file}}.zst` +`zstd --decompress {{path/to/file.zst}}` - Decompress to `stdout`: -`zstd -dc {{path/to/file}}.zst` +`zstd --decompress --stdout {{path/to/file.zst}}` - Compress a file specifying the compression level, where 1=fastest, 19=slowest and 3=default: diff --git a/pages/common/zstdcat.md b/pages/common/zstdcat.md new file mode 100644 index 000000000..3a9d3d584 --- /dev/null +++ b/pages/common/zstdcat.md @@ -0,0 +1,7 @@ +# zstdcat + +> This command is an alias of `zstd --decompress --stdout`. + +- View documentation for the original command: + +`tldr zstd` diff --git a/pages/common/zstdmt.md b/pages/common/zstdmt.md new file mode 100644 index 000000000..817f33d1e --- /dev/null +++ b/pages/common/zstdmt.md @@ -0,0 +1,7 @@ +# zstdmt + +> This command is an alias of `zstd --threads 0` (which sets the number of working threads to the number of physical CPU cores). + +- View documentation for the original command: + +`tldr zstd`