gzip
Linux · Files · available in the simulator
What it does
Compress a file to .gz (replaces the original unless -k is specified).
Syntax
gzip [opciones] archivo...
Options and parameters
-dDecompress the file; equivalent to gunzip.
gzip -d archivo.gz-kKeep the original file.
-lDisplay compression information for the file.
-tTest integrity of the compressed file.
-vVerbose mode.
-rRecursively compress files in directories.
-9Maximum compression, slower; -1 is fastest.
gzip -9 archivo.log-cWrite output to standard output.
Usage examples
gzip ficherogzip -tv fichero.gzgzip -lv fichero.gzgzip -k ficherogzip -d fichero.gzgzip archivo.loggzip -dk archivo.gzgzip -d archivo.gzgzip -9 archivo.log