Processes Flashcards

1
Q

What is systemd (formerly init)?

A

systemd is the first process that is started by the kernal at boot, it also reparents processes that have lost their partent

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the command to send a process a signal?

A

kill

pkill

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What us the default signal sent by kill?

A

15

SIGTERM - tells process to stop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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

A

kill -9

SIGKILL - instructs kernel to kill a process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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

A

kill -l

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How can you search for a process?

A

pgrep

ps -aux | grep

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

When searching for a process what will be returned?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What kill signals cannot be caught, blocked or ignored?

A

SIGKILL

SIGSTOP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How do you run a process with a specified priority?

A

nice -n 4 firefox

*n value between -20,19

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What are the 4 states a process can be in?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

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

A

Waiting to return information or waiting on parent process to complete

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

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

A

renice -n -14

*n value between -20,19

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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

A

/proc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly