znew

znew

The znew command in Linux is used to compress files using the zlib compression library. The znew command is a part of the zlib suite of tools.

Here are some examples of how to use the znew command:

# To compress the file `file.txt`:
znew file.txt

# To overwrite the existing file `file.txt.gz`:
znew -f file.txt

# To show help for the `znew` command:
znew --help

help

znew [options] FILE

Compress FILE using zlib.

Options:

-f, --force   Overwrite existing FILE.
-h, --help    Show this help message.
-V, --version  Print version information.

For more information, see the znew manual page:

https://linux.die.net/man/1/znew

breakdown

-f, --force: This option overwrites the existing file.
-h, --help: This option shows this help message.
-V, --version: This option prints version information.

Last updated