shlogg · Early preview
Ashutosh Biswas @ashutoshbw

Gzip Command Tutorial: Compress And Uncompress Files

gzip compresses regular files, not dirs or symlinks. Use `gunzip`, `zcat` & `zless` for uncompressing & viewing. Compress with `gzip file1 file2...` or pipe to `gzip > output.gz`.

gzip command is used to reduce the size of given files. This command is so common that you will most likely find it already installed on your Linux distro.
gzip only compresses regular files. Directories, symbolic links etc are not it's food. Files compressed with gzip are often called gzipped files.
gzip also comes with the gunzip, zcat and zless commands for uncompressing and viewing gzipped files.
Let's start gzipping!

  
  
  Compressing one or more files

To compress one or more files we can simply do like below:

gzip file1 file2 file3

    
    

    
    




It will compress each fil...