To compress a folder tar -zcvf tar-archive-name.tar.gz source-folder-name To un-compress a tar.gz tar -zxvf tar-archive-name.tar.gz