Process Handling

From Newroco Tech Docs
Jump to navigationJump to search

If you need to pause and resume a background process you can use kill command

Search for a process and find the PID:

root@Vincent:~# ps aux | grep ping
emilian   8169  0.0  0.0  14948  1840 pts/25   S+   09:33   0:00 ping google.com
root      8171  0.0  0.0  15752   944 pts/24   S+   09:33   0:00 grep --color=auto ping

The first process is the one we need, and the PID can be found in the second column.

Pause the process

kill -STOP 8169

Resume the process

kill -CONT 8169