Unix-y things that make me happy: disown

I’m on a perpetual quest to better know my operating system, so I’m constantly discovering awesome little bits that make life easier. Recently, I discovered the disown command, which turns out most of my friends didn’t know about either, so here’s the rundown:

disown can be used to detach jobs from the session they were started in. It is the solution to when you forgot to nohup/screen a long running process, and now want to disconnect from the server and go home. It’s the retroactive nohup.

There’s a decent writeup of nohup, disown, and related concepts here and some more specific info here.

Leave a Reply