Forrest logo
back to the znew tool

znew:tldr:271a3

znew: Recompress a file, [K]eeping the `.Z` file if it is smaller than the `.gz` file.
$ znew -K ${filename1-Z}
try on your machine

The command "znew -K ${filename1-Z}" is a command-line instruction that invokes the "znew" utility with specific options and arguments. Here is a breakdown of the command:

  • "znew": This is the command itself, which refers to a utility in Unix-like operating systems used to compress files with the "compress" algorithm.

  • "-K": This option is an argument for the "znew" command, which specifies that the compressed file should be kept if the compression is successful.

  • "${filename1-Z}": This is a parameter or variable representing the name of the file to be compressed. The "-Z" suffix indicates that the file should be compressed using the "compress" algorithm.

Overall, when you execute this command in a shell or terminal, it will compress the file specified by the "filename1" variable or parameter using the "compress" algorithm and keep the compressed file if the compression is successful.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the znew tool