Processes Flashcards
What is systemd (formerly init)?
systemd is the first process that is started by the kernal at boot, it also reparents processes that have lost their partent
What is the command to send a process a signal?
kill
pkill
What us the default signal sent by kill?
15
SIGTERM - tells process to stop
What is the command to kill a process abruptly if it is not responding?
kill -9
SIGKILL - instructs kernel to kill a process
What is the command to get a list of process signals (syntax)?
kill -l
How can you search for a process?
pgrep
ps -aux | grep
When searching for a process what will be returned?
The process searched if it exists and the grep process searching for it
What kill signals cannot be caught, blocked or ignored?
SIGKILL
SIGSTOP
How do you run a process with a specified priority?
nice -n 4 firefox
*n value between -20,19
What are the 4 states a process can be in?
running - eligible to be scheduled for CPU time, will be run
sleeping - waiting for something
zombie - finished computing, waiting to return information/terminate
stopped - stopped waiting for SIGCONT to resume
What is a reason that a process could be in a zombie state?
Waiting to return information or waiting on parent process to complete
What is the command to change the priority of a process?
renice -n -14
*n value between -20,19
What is the location of process information in the file system?
/proc