I have a process originally running in the foreground. I suspended by Ctrl+Z, and then resume its running in the background by bg <jobid>.
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 <jobid> while the process is outputting to the terminal?
fg <jobid>to make it foreground? – Tim Aug 8 '12 at 19:59