How to Detach and Background a Running Process From a SSH Session

Sometimes you run a program at the command line and it’s running longer than you thought. You’re worried process might die if you walk away and your shell disconnects? Well you can detach from the process and put it in the background without worry.

Here are the steps, just do them one at a time after you’ve run your script and the shell is waiting for it to finish.

disown %1

Leave a Reply

Your email address will not be published. Required fields are marked *