title: Exclude a directory from find linux
body: <p>I want to exclude all directories from the <code>find</code> command target. I can use this:</p>
  
  <pre><code>find / -not -path /my/path -name name
  </code></pre>
  
  <p>But this still keep looking at all subdirectories of <code>/my/path</code>. Is there a way to exclude the directory and all its subdirectories from <code>find</code>?</p>