how to zip folder in ubuntu terminal code example Example: zip entire directory ubuntu zip -r compressed_filename.zip foldername