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