tldr/pages/common/znew.md

21 lines
540 B
Markdown
Raw Normal View History

2022-10-02 17:09:22 +01:00
# znew
> Recompress files from `.Z` to `.gz` format.
> More information: <https://manned.org/znew>.
- 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 ...}}`
2022-10-02 17:09:22 +01:00
- 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}}`