If you want to zip file and exclude some directory while file zip in linux you can simply use the below command.

zip -r filename.zip folder -x folder1 folder2

Where as folder is the going to zip in the name of filename.zip and folder1 and folder2 will be exclude from while zipping.

5 thoughts on “Exclude Directory While zip file in unix platform”

  1. I enjoy you because of all your work on this site. Ellie delights in conducting investigation and it is easy to understand why. We all hear all regarding the compelling method you create insightful solutions by means of the website and therefore increase contribution from website visitors on the subject so our own simple princess is actually starting to learn a lot. Have fun with the remaining portion of the new year. You’re the one performing a fantastic job.

  2. Just desire to say your article is as astounding. The clarity to your post is just cool and that i can assume you’re a professional on this subject. Fine with your permission allow me to clutch your feed to stay up to date with forthcoming post. Thanks one million and please keep up the enjoyable work.

Leave a Reply to Vashish Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.