Zip only some files (jpg) via unix command line

To create a new zip archive ‘filename.zip’ including only select files, you can use an expression argument after the command. Enter the following in your terminal to compress all jpg fies in current directory:
# zip filename.zip *.jpg
If you want to only compress mp4 files with ‘720p’ in the filename, enter the following:
# zip filename.zip *720p*.mp4

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Please enter 10 numbers for Captcha: * Time limit is exhausted. Please reload the CAPTCHA.