title: How do I kill all processes running from a particular directory?
body: <p>I'm looking for a quick terminal command that will kill all of the processes which are running from a particular directory (or a subdirectory of that directory).</p>
  
  <p>For example, let's say I have the <code>bin1</code> and <code>bin2</code> executables running. They live at the following paths:</p>
  
  <p><code>/path/to/processes/subdir1/bin1</code></p>
  
  <p><code>/path/to/processes/subdir2/subsubdir2/bin2</code></p>
  
  <p>I want to kill both bin1 and bin2 by only specifying <code>/path/to/processes</code> such that the command will find and kill both <code>bin1</code> and <code>bin2</code> because of their location.</p>