title: Kill nohup process unix
body: <p>I am running jar using nohup command </p>
  
  <blockquote>
    <p>nohup java -jar Test.jar</p>
  </blockquote>
  
  <p>I can't find PID of the jar I am running. I try with:</p>
  
  <blockquote>
    <p>ps ax | grep java </p>
  </blockquote>
  
  <p>but it is not listing, then I tried with</p>
  
  <blockquote>
    <p>ps -ef | grep nohup</p>
  </blockquote>
  
  <p>and I got this output</p>
  
  <blockquote>
    <p>root      8503  7529  0 21:52 pts/0    00:00:00 grep nohup</p>
  </blockquote>
  
  <p>which of the PIDs is PID of nohup process? The first one 8503 is always diffrent, while the second one is the same.</p>