How to decompress files via command line

This shows how to decompress files command line, of many formats.

=Common Compression and archive Formats=
 * gzip
 * bzip2
 * xz
 * zip
 * rar
 * 7z
 * lzma
 * tar
 * cab

=Command Line=

tar.gzip format
tar -xzvf app.tar.gz
 * tar man page

tar.bz2 format
tar -xjvf app.tar.bz2
 * tar man page

tar.xz format
tar -xJvf app.tar.xz
 * tar man page

zip format

 * directory: unzip app.zip
 * zip man page

rar format

 * directory: rar e app.rar
 * rar man page

LZMA format

 * To be added
 * lzma man page

7zip format

 * 7z x app.7z
 * 7z man page

InstallShield cabinet format (*.cab)

 * unshield x app.cab

Microsoft cabinet format (*.cab)

 * cabextract app.cab

Uncompressed tar archive (*.tar)
tar -xvf app.tar
 * tar man page

=References=
 * Compression comparisons
 * 7za man page
 * zip man page
 * tar man page
 * rar man page
 * lzma man page