20

Tip #744   Close shell keeping all subprocess running

I often use 'screen' to run a command that I want to leave running when I logout but sometimes I forget and kick off a long job without screen. If you want to keep these things running, the following command will close the shell keeping all subprocess running

disown -a && exit

More information on the bash man page:

man bash | grep -A9 "disown \["