Which shell command is used to continue background execution of a suspended command?
A.
&
B.
bg
C.
cont
D.
exec
E.
:&
題解
選項 A,「&」可以在一開始輸入指令的時候,作為參數把指令丟到背景中執行。
選項 B,「bg」可以在背景中繼續執行停止的工作。為正確答案。
選項 C,沒有「cont」指令。
選項 D,「exec」指令可以使用目前的行程(process)來執行指令,而不會產生子行程。
選項 E,等同於「true &」。「true」執行後會回傳 0,而讓「$?」的值為 0。
