Process Management Flashcards

Quick review of process definitions

1
Q

Show process information for all users

A

ps -a

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

ps -x

A

Displays info regarding processes without terminals

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

ps -ef

A

Displays full information for all processes (in foreground and background)

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

You execute the sleep command for 800 seconds by accident, stop this command and obtain a job ID

A

control z

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

When a process is killed, but it’s still visible in the ps listing, it is called a _________________

A

Zombie Process

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

When a PPID is terminated prior to terminating the PID, the PID is now an________________

A

Orphan Process

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

Please check if passwd file (/var/lib/sss/mc/passwd) is using processes or has been opened by processes

A

lsof /var/lib/sss/mc/passwd

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

Type of processes that system processes run in the background with root permission are called ______________

A

Daemon Processes

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

You want to run a command in the back ground; after obtaining it’s job id 7, you type ____

A

bg 7

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

Kill Process 5784 slowly

A

kill 5784 -15

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