I'm quite new to ubuntu and I need to do something but I don't know how.
Let's supose that I want to connect to a server, start a big compilation (hours) and I don't want to keep connected to the server while it compiles.
Now if I disconnect and connect again, I cannot see the output of the compilation (I assume the connection creates a new session)
Is there a way to connect, launch something, disconnect and when connecting again resume the previous connection so I can see all the output to the console that has been done so far? (Like if I do a remote desktop, but in ssh)
Actually I'm interested in recovering the console session. Imagine that the compilation or any other thing that I might be running at some point asks user input in order to continue.
1) I connect by ssh
2) I run
sudo apt-get dist-upgrade
3) This will ask me confirmation to upgrade (I know I can pass some flags to avoid confirmation but I don't want to)
4) I disconnect
5) I connect again and I want to be able to see the history and the console asking me confirmation to upgrade
6) I confirm to upgrade and disconnect again.