Bring background task to foreground

Linux OS Topics
Post Reply
User avatar
Neo
Site Admin
Site Admin
Posts: 2642
Joined: Wed Jul 15, 2009 2:07 am
Location: Colombo

Bring background task to foreground

Post by Neo » Wed Sep 02, 2009 3:08 am

Use the fg command.
Example: fg %xxx where xxx is the process ID.

If a command is stopped it can be started in the background with the following command: bg %xxx where xxx is the PID from above.

When a background task is done, it will display an exit message the next time the Enter key is pressed.
Post Reply

Return to “Linux”