title: Send signal to process from command line
body: <p>I read about signals and I know how to send a signal to a process from the command line. Just do</p>
  
  <pre><code>ps -C executable
  </code></pre>
  
  <p>to know the pid of the process, and then</p>
  
  <pre><code>kill -s signal pid(number)
  </code></pre>
  
  <p>However, I'd like to find a more interactive and general way to do this if possible.</p>
  
  <p>I'd like to send a signal to a specific process from the command line. I'd like to not need to print the PID of the process I want to signal, but rather use a way that the code understands which process should be signaled.</p>
  
  <p>Other than that I'd like to understand exacly what the kill command does.</p>
  
  <ul>
  <li>Does it kill the process that signals?</li>
  <li>Does it kill the process where it's called?</li>
  <li>If it kills a process it means that it's similar to do <code>exit(0)</code>, or does the process resume after the signal is sent back?</li>
  </ul>