how to zip a folder from terminal ubuntu code example Example: create zip file ubuntu zip -r output_file.zip file1 folder1