Multiple choice technology operating systems

How do you move a process which is running background to foreground?

  1. fg pid

  2. bg pid

  3. mv pid

  4. none of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The correct command is 'fg' (foreground), which by default operates on job specifications, not PIDs. To move a background job to foreground, use 'fg' or 'fg %jobnum'. Using 'fg pid' is technically incorrect syntax - fg expects a job ID (like %1), not a process ID. However, option A is intended as the correct answer among the choices.