tar

Compress

CommandDescription
tar -cvzf /out/put/file/tar.targz /path/to/dir-or-filecompress dir or file to tar.gz
tar -cvzf output.tar.gz /path/to/fils --exclude=*.swpcompress all dirs with files excluding files with fileending .swp

Decompress

CommandDescription
tar -xvzf /file/to/tar.targzdecompress tar.gz file
`tar -xvzf /file/to/tar.targz -C /dest/path/decompress tar.gz to the destination path