What command starts an application?
$ nice “name of application”
What is a process in the context of operating systems?
A running program
Each process is unique even if the same program is launched multiple times.
What does PID stand for in process management?
Process ID
Each process has a unique PID and a PPID (Parent Process ID).
What is the first process that starts upon bootup?
systemd
It has a PID of 1.
What happens to a child process when it completes its task?
It wakes up the parent process
Data is transferred to the parent, and the memory space of the child becomes a zombie.
What are the four types of process states?
Each state indicates the current status of a process.
What command is used to see the top consuming processes?
top
This command provides a dynamic view of system processes.
What command is used to see a list of processes?
ps
Options vary between POSIX and BSD styles.
What command shows the hierarchy of processes?
pstree
This command visualizes the relationship between PIDs and PPIDs. Can use pstree -p to show the PIDs for each process.
To run a command in the background, you should add _______ to the end of the command line.
&
This allows the command to run without occupying the terminal.
What command is used to move a process to the foreground?
fg
You can specify the job number with %<job>.</job>
What signal number is the default for stopping a process?
15
This signal tells the process to quit normally but can be ignored.
What command is used to kill a process?
kill
You must find the PID of the process before using this command.
What does the signal number 9 do when killing a process?
Tells the process to quit immediately, cannot be ignored
This is a forceful termination of the process.
What command can you use to kill multiple processes by command name?
pkill
This command can also kill processes by UID or GID.
To log a user out, you need to find their PID and use which command?
pkill -P <PID></PID>
This effectively kills the user’s session.
What command displays al processes running for all users
$ ps aux
What command is used to see options that can be used with the ps command?
$ man ps
What command is used to list the different ways to kill a process?
kill -l