The gzip command (GNU zip) is specifically designed for compressing and decompressing "gz" files, typically identified by the ".gz" file extension. The syntax for the gzip command is gzip [OPTIONS] FILES.
Here are some commonly used options:
$ gzip * ←Compress all files in the current working directory $ gzip -d *.gz ←Decompress all ".gz" files in the current working directory $ gzip -9 *.cpp ←Compress all ".cpp" files with compression level 9 |