From 8f89fb49d394cecd1d85c10ab7ee23199dd05683 Mon Sep 17 00:00:00 2001 From: Juri Date: Sun, 2 Oct 2022 18:09:22 +0200 Subject: [PATCH] znew: add page (#8637) --- pages/common/znew.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/common/znew.md diff --git a/pages/common/znew.md b/pages/common/znew.md new file mode 100644 index 000000000..022611d13 --- /dev/null +++ b/pages/common/znew.md @@ -0,0 +1,20 @@ +# znew + +> Recompress files from `.Z` to `.gz` format. +> More information: . + +- Recompress a file from `.Z` to `.gz` format: + +`znew {{path/to/file1.Z}}` + +- Recompress multiple files and display the achieved size reduction % per file: + +`znew -v {{path/to/file1.Z}} {{path/to/file2.Z}} {{path/to/file3.Z}}` + +- Recompress a file using the slowest compression method (for optimal compression): + +`znew -9 {{path/to/file1.Z}}` + +- Recompress a file, [K]eeping the `.Z` file if it is smaller than the `.gz` file: + +`znew -K {{path/to/file1.Z}}`