» Linux » Examen sur Linux » Examen 201 : Advanced Administration » Section 4 » Question 9/20
9.You issue the command jobs and receive the following output:

[1]- Stopped (tty output) pine
[2]+ Stopped (tty output) My Script

How would you bring the My Script process to the foreground?

fg %2
ctrl-c
fg My Script
ctrl-z

Explanation: You can bring a background job to the foreground by executing the "fg" command. If there are several background jobs, then you must indicate which job you wish to move to the foreground by indicating its job number. The syntax would be fg %<job number>.

Reference: http://www.itworld.com/nl/lnx_tip/10052001/

Incorrect Answers
B: Ctrl-c is used to stop a running command/job. It does not bring a background job to the foreground.
C: If there are several background jobs, then you must indicate which job you wish to move to the foreground by indicating its job number.
D: Ctrl-z is used to suspend a running command/job without ending it. It does not bring a background job to the foreground.

« Question 8 Question 10 »