Job Control
[1]Stopped yes
[2]+ Stopped yes
$ fg 2
PID TTY TIME CMD
- Control-z suspends a currently running job
- The jobs command shows you all the jobs running in the terminal
[1]Stopped yes
[2]+ Stopped yes
- Each job given a number. Run the second job in the background or foreground:
$ fg 2
- Begin job in the background
$ command &
- List all jobs running on your machine:
$ ps u lande
PID TTY TIME CMD
19231 pts/21 00:00:00 vim
19233 pts/21 00:00:00 find
19233 pts/21 00:00:00 find
- Kill any job (by PID or name)
$ kill 19231
$ killall find
0 comments:
Post a Comment