Linux Tutorial Series

Linux Tutorial Series – 126 – The gzip command

Here is the video version, if you prefer it:

The gzip command is used to compress one or more files. (Shotts, 2019)⁠ Here is its syntax:

gzip fileName

Interesting options include:

-v – verbose mode (informative output is displayed)

-t – test the integrity of the compressed file

-d – decompress

For decompression you can use gunzip command as follows:

gunzip fileName

That way you can decompress a file compressed with gzip.

Thank you for reading!


Shotts, W. (2019). The Linux Command Line, Fifth Internet Edition. Retrieved from Pages 259-261