title: ubuntu: How to zip a directory in ubuntu by excluding some subdirectories from command line
body: <p>I want to zip a directory by excluding some unwanted subdirectories. I have tried :</p>
  
  <pre><code>zip -r test.zip * -x 'test1/' 'test2/'
  </code></pre>
  
  <p>and</p>
  
  <pre><code>zip -r test.zip * -x 'test1/' -x 'test2/'
  </code></pre>
  
  <p>But nothing happens.</p>