znew
file_compressionlinux
The znew command is one of the most frequently used commands in Linux/Unix-like operating systems. znew Recompress .Z files to .gz format
Quick Reference
Command Name:
znew
Category:
file_compression
Platform:
linux
Basic Usage:
znew [options] [arguments]
Common Use Cases
Syntax
znew [options] [file.Z...]
Examples
How to Use These Examples
The examples below show common ways to use the znew command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
Basic Examples:
Convert a single .Z file to .gz format
znew oldfile.Z
Convert multiple .Z files to .gz format
znew file1.Z file2.Z file3.Z
Convert all .Z files in the current directory
znew *.Z
Advanced Examples:
Convert with higher compression (level 9)
znew -9 largefile.Z
Keep the original .Z file after conversion
znew -K datafile.Z
Overwrite existing .gz file without prompting
znew -f already_exists.Z