linux compress a folder into zip through command line code example Example: compress a folder linux zip tar -zcvf example.tar.gz directorytocompress/