This pair of commands can be used to compress and expand files in the gzip format. First, gzip filename is used to compress a file and gunzip filemane to expand the zipped file.