Skip to content

Instantly share code, notes, and snippets.

@n5i
Created December 14, 2012 08:36
Show Gist options
  • Save n5i/4283665 to your computer and use it in GitHub Desktop.
Save n5i/4283665 to your computer and use it in GitHub Desktop.
unix. Send running process to background
Using the Job Control of bash to send the process into the background:
ctrl+z to stop (pause) the program and get back to the shell
bg to run it in the background
disown -h so that the process isn't killed when the terminal closes
Suppose for some reason Ctrl+Z is also not working, go to another terminal, find the process id (using ps) and run
kill -20 PID
kill -18 PID
kill -20 will suspend the process and kill -18 will resume the process, in your other terminal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment