Background le processes Flashcards
(11 cards)
what is a foreground process?
a processes that is is waiting for the shell that executed it to MURDER IT aka kill
what is background processes?
a process that is ran in the background of a shell and does not wait for it to KILL IT
what does appending & at the end of a command do?
makes it run in le background
true or false | sample & and sample& are functionly the same?
TRUE because you do not need to add the space to a command in order to run it in background
what does the following command do?
[root@server1 ~]# kill -2 %1
[1]+ Interrupt sample
sends a SIGNT to the background id of 1
what does the fg command do?
sets a process to the foreground
what does the jobs command do?
shows the background processes
what does the bg command do?
sends a processes to the background
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 &
sample4 second tell via -
sample 3 most tell via +
true or false | appending the % after the kill command without stateing the PID for it kills the most recent?
true
what happens if you use a command with % at the end without stating the bgid?
it uses the most recent one