how to zip a compress a folder in linux code example Example: compress a folder linux zip tar -zcvf example.tar.gz directorytocompress/