Processes Flashcards Preview

Linux (debian) > Processes > Flashcards

Flashcards in Processes Deck (13)
Loading flashcards...
1

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

2

What is the command to send a process a signal?

kill
pkill

3

What us the default signal sent by kill?

15
SIGTERM - tells process to stop

4

What is the command to kill a process abruptly if it is not responding?

kill -9
SIGKILL - instructs kernel to kill a process

5

What is the command to get a list of process signals (syntax)?

kill -l

6

How can you search for a process?

pgrep
ps -aux | grep

7

When searching for a process what will be returned?

The process searched if it exists and the grep process searching for it

8

What kill signals cannot be caught, blocked or ignored?

SIGKILL
SIGSTOP

9

How do you run a process with a specified priority?

nice -n 4 firefox
*n value between -20,19

10

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

11

What is a reason that a process could be in a zombie state?

Waiting to return information or waiting on parent process to complete

12

What is the command to change the priority of a process?

renice -n -14
*n value between -20,19

13

What is the location of process information in the file system?

/proc