zip entire folder and its content using terminal code example Example: zip folder terminal zip -r mynewfilename.zip foldertozip/