Sample Header Ad - 728x90

How to suspend and bring a background process to foreground

289 votes
5 answers
645093 views
I have a process originally running in the foreground. I suspended by Ctrl+Z, and then resume its running in the background by bg . I wonder how to suspend a process running in the background? How can I bring a background process to foreground? **Edit:** The process outputs to stderr, so how shall I issue the command fg while the process is outputting to the terminal?
Asked by Tim (106430 rep)
Aug 8, 2012, 12:45 PM
Last activity: Jul 23, 2024, 10:46 AM