monitoring and managing processes
zombie process: when child is done it frees up its reasources except for its process ID; then it’s just an etry in the parent’s process table; parent wakes up and clears process table
stopped is different from terminated
PTS : pseudo terminal session
ps -ef
bash shell running inside terminal emulator program, and allocated a pt
PID1 is systemd
top
controlling jobs
use & to run process in background, which allows it to write to stdout and lets you run additional processes
fg %1
|
|
killing processes
19
SIGSTOP stops process, but doesn’t term/kill it
15
SIGTERM terminates, is nice, waits for process to end gracefully
9
SIGKILL kills, less nice
1
SIGHUP takes config file and re-inits it into memory
pkill
looks up processes based on name or other attributes
kill a user’s login session
|
|
send SIGSTOP to job #1 to stop it
|
|
send SIGCONT to job #1 to continue it
|
|