170k views
1 vote
Which command is used to bring the background process to foreground?

1) bg
2) fg
3) background

User Krzaq
by
7.8k points

1 Answer

5 votes

Final answer:

The 'fg' command is used to bring a background process into the foreground in a terminal session on Unix or Linux systems. When you have a process running in the background and you want to bring it to your current terminal session, you simply type fg followed by the job identification number if you have more than one background process.

Step-by-step explanation:

The command used to bring a background process to the foreground in a Unix or Linux environment is fg. When you have a process running in the background and you want to bring it to your current terminal session, you simply type fg followed by the job identification number if you have more than one background process. For instance, if a process is job number 1, you would use the command fg %1 to bring it to the foreground.

User Brary
by
7.9k points