For ex – if I enter ping one.com the process will keep running – if I want to stop that process, I can type Ctrl C which if I'm not mistaken, will kill the process completely. If instead, I stop it with Ctrl Z, isn't it true that the process can still be operating in the background at some level? How is one able to spot a condition where a process is running but can't be seen on the terminal screen? Thanks.
How to determine if a process is running unseen in terminal
processterminal
Best Answer
Use the
jobs
built-in to see running tasks for your current shell.To kill all running jobs, you can leverage
jobs -p
which lists the pids of all jobs.Further reading: http://www.tldp.org/LDP/abs/html/x9644.html