5

How to suspend and bring a background process to foreground

view full story
linux-howto

http://unix.stackexchange.com – 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? Thanks! Edit: The process outputs to stderr, so how shall I issue the command fg <jobid> while the process is outputting to the terminal? (HowTos)