zip a file in ubuntu 18.04 code example Example: zip entire directory ubuntu zip -r compressed_filename.zip foldername