Linux gzip command

kmsheng
1 min readMar 27, 2018

--

gzip - compress or expand files

gzip <filename> compress a file and replace it with a file with .gz suffix

gunzip <filename> decompress gzip file

Note:

  • be careful with this command that gzip by default does not preserve original file
  • gzip cannot zip an entire folder

--

--

No responses yet