I'm currently upgrading my Ubuntu server from 14.04 to 14.10, and I'm curious about something. If my SSH session gets disconnected during either this or any other long-running command, reopening the SSH terminal will simply give me a new, blank prompt where I can enter new commands.
So I guess I have two questions:
- If the SSH session is disconnected while a command is running, is the command terminated or does it run to completion in the background?
- If it runs to completion after the SSH session is disconnected, is it possible to open a new SSH session and resume that command's output in the new terminal window?