QuestionQ6

Troubleshooting

A Linux user executes the following command:

nohup ping comptia.com &  

Which command should the user run to bring the process onto the current terminal?

  • A renice
  • B jobs
  • C exec
  • D fg
Explanation

In a job-control shell, fg resumes or moves the current background job into the foreground, where it is associated with the current terminal. The trailing & starts the command as a background job; nohup prevents a hangup signal from terminating it but does not change the use of fg for job control.

Community Discussion

No comments yet. Be the first to start the discussion!