Processes and Job Control Flashcards

1
Q

What command should we use to display current running processes?

A

ps

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

How can we see all the processes (not only the ones for the current session) with ps?

A

ps -ef

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

What command should we use for seeing the processes in a tree like view?

A

pstree

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

What command should we use for an interactive process viewer?

A

top or htop (htop is not present in some Linux Systems)

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

Which command should we use to run a command in the background?

A

command &

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

How can we kill a process that’s currently running in the foreground?

A

CTRL+c

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

How can we suspend a process that’s currently running in the foreground?

A

CTRL+z

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

What command should we use to activate a suspended process in the background?

A

bg

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

What command should we use to bring a process from the background to the foreground?

A

fg

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

What command should we use to kill a process?

A

kill

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

What command should we use to list all the current jobs?

A

jobs

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

What is the kill signal number?

A

-15 is the kill signal, -9 is a force kill signal.

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