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