Tutorial by Examples

Let's create a process which is rather long to complete : $ sleep 1000 To pause the process, type Ctrl + Z : ^Z [1]+ Stopped sleep 1000 You can use jobs to see the list of processes running or stopped in the current terminal : $ jobs [1]+ Stopped sleep 10...
To get a list of the processes running in the current terminal, you can use ps : $ sleep 1000 & $ ps -opid,comm PID COMMAND 1000 sh 1001 sleep 1002 ps To kill a running process, use kill with the process ID (PID) indicated by ps: $ kill 1001 $ ps -opid,comm PID COMMAND 1000 sh...

Page 1 of 1