how to zip a folder in terminal code example Example: zip folder terminal zip -r mynewfilename.zip foldertozip/