Apr 20, 2017

[HDGEM] How to bring a background process to foreground on Linux

type fg to bring the last process back to foreground.
If you have more than one process running in the background, do this:
$ jobs
[1]-  Running                 chromium-browser &
[2]+  Running                 terminator &

fg %2 to send the terminator process back to foreground.
To suspend the process running in the background, use:
kill -19 %job_id.
the -19 signal is SIGSTOP (the signal sent by Ctrl+Z) .
example: kill -19 %3.

Post a Comment

Featured Post

Keep your API key private.

If someone obtains your key, they could use it to consume your quota or incur charges against your API Console project.