What Does Bg Do in Linux?
Contents

The bg command is part of Linux/Unix shell job control. The command may be available as both internal and external command. It resumes execution of a suspended process as if they had been started with &. Use bg command to restart a stopped background process.

How do you use BG and FG in Linux?

The fg command is like bg command except that instead of sending a command in the background, it runs them in the foreground and occupies the current terminal and waits for the process to exit. Without any argument, fg will run the current job in the foreground (vi in this case).

What is FG and BG in Unix?

bg : put the recently suspended process in the background. … fg : put the recently suspended process in the foreground. & : run a program in the background to begin with. jobs : list child processes under terminal shell.

David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article
Twitter Facebook Pinterest