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