Compress/uncompress files with
gzip
compression (LZ77). More information: https://www.gnu.org/software/gzip/manual/gzip.html.
gzip
archive:gzip file.ext
gzip -d file.ext.gz
gzip --keep file.ext
gzip -c file.ext > compressed_file.ext.gz
gzip
archive specifying the output filename:gzip -c -d file.ext.gz > uncompressed_file.ext
gzip -9 -c file.ext > compressed_file.ext.gz