Forrest logo
back to the gzip tool

gzip:tldr:fd22d

gzip: Compress a file, keeping the original file.
$ gzip --keep ${file-ext}
try on your machine

The command "gzip --keep ${file-ext}" is used to compress a file using the gzip utility while retaining the original file.

Here is a breakdown of the components of the command:

  • "gzip" refers to the gzip utility, which is used for file compression.
  • "--keep" is an option in gzip that tells the utility to retain the original file after compressing it. If this option is not used, the original file will be deleted.
  • "${file-ext}" is a placeholder for the name of the file you want to compress. You need to replace "${file-ext}" with the actual name or path of the file you want to compress.

Overall, this command compresses the specified file using gzip and keeps the original file in place.

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 gzip tool