Screen vs Ctrl-z
Amazing the stuff you forget:
Many years ago, I knew there was a really easy way to detach and reattach sessions in Unix (HP-UX at the time).Â But in recent years with Linux, I’ve been using “screen” which was always overkill for simple job control.
While reacquainting myself with emacs, I found myself accidentally hitting ctrl-z and poof, to my horror, my edit session disappeared! But a ps showed emacs was still running. A bit of googling showed that emacs was indeed still alive and well and could be retrieved with fg followed by the job number. jobs -l displays a list of current background jobs.
For more, check out job control in man bash.