compress to tgz linux code example Example: compress to tgz linux tar -cvzf <name of tarball>.tgz /path/to/source/folder