znew
Convert compress (.Z) files to gzip format
TLDR
Convert .Z file to .gz
SYNOPSIS
znew [-ftv9PK] file.Z...
DESCRIPTION
znew recompresses files from the old compress format (.Z) to gzip format (.gz). The compress utility used LZW compression, while gzip uses DEFLATE which typically achieves better compression ratios.
The tool is useful for converting legacy compressed archives to the more modern and efficient gzip format. After conversion, the original .Z file is deleted by default.
znew verifies the integrity of the new .gz file before removing the original when using the -t flag, providing safety against corruption.
PARAMETERS
-f
Force recompression even if .gz file already exists-t
Test new file integrity before deleting original-v
Verbose output-9
Use best compression level-P
Use pipes for conversion (slower but uses less disk space)-K
Keep the original .Z file
CAVEATS
Only converts .Z files to .gz. Does not handle other compression formats.
Without -K, the original file is deleted after successful conversion.
The -P option uses more CPU but less temporary disk space.
Modern systems rarely encounter .Z files, making this tool primarily useful for archival work.
HISTORY
The compress utility and .Z format date from the 1980s. gzip was created in 1992 as a free alternative that avoided LZW patent issues. znew was created to facilitate migration from the older format.
