Background le processes Flashcards

(11 cards)

1
Q

what is a foreground process?

A

a processes that is is waiting for the shell that executed it to MURDER IT aka kill

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

what is background processes?

A

a process that is ran in the background of a shell and does not wait for it to KILL IT

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

what does appending & at the end of a command do?

A

makes it run in le background

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

true or false | sample & and sample& are functionly the same?

A

TRUE because you do not need to add the space to a command in order to run it in background

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

what does the following command do?
[root@server1 ~]# kill -2 %1
[1]+ Interrupt sample

A

sends a SIGNT to the background id of 1

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

what does the fg command do?

A

sets a process to the foreground

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

what does the jobs command do?

A

shows the background processes

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

what does the bg command do?

A

sends a processes to the background

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

which of the following is the most recent process and the second most recent processes

[root@server1 ~]# jobs
[1] Running sample &
[2] Running sample2 &
[3]- Running sample3 &
[4]+ Running sample4 &

A

sample4 second tell via -

sample 3 most tell via +

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

true or false | appending the % after the kill command without stateing the PID for it kills the most recent?

A

true

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

what happens if you use a command with % at the end without stating the bgid?

A

it uses the most recent one

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