Compressing files under Linux or UNIX cheat sheetBoth Linux and UNIX include various commands for Compressing and decompresses (read as expand compressed file). To compress files you can use gzip, bzip2 and zip commands. To expand compressed file (decompresses) you can use and gzip -d, bunzip2 (bzip2 -d), unzip commands.
List the contents of an archive/compressed fileSome time you just wanted to look at files inside an archive or compressed file. Then all of the above command supports file list option.