gzip/gunzip

gzip and gunzip are the GNU version of compress and uncompress.

The suffix of a compressed file by gzip ends with .gz.

gzip/gunzip options meaning
-c write output on standard output
gunzip -c f1.gz > f1
ls -l
cat f1 | gzip -c - > f2.gz