September 20, 2011 | Commands | No Comments|
gzip – command compress one or more files.
gzip [options] files
-c displays the output file to standard output and keeps the original file.
-d decompresses the file (same as gunzip).
-h displays help for the team.
-l displays the contents of compressed file.
-n does not preserve the original name and timestamp.
-r recursively compresses files in all subdirectories.
-v generates detailed output.
-V displays the version number.
The command gzip compresses files using the compression algorithm Lempel-Ziv LZ77. After compression gzip file replaces the original file to a compressed version and adds to file name .gz.