

Where I have to start SSH terminal and from the terminal, I have to keep the terminal connected to run the process. I have to keep running the long-running processes on a google cloud platform's VM instance/server (with OS: Ubuntu 16.0). Tmux is a good option available to run your long-running processes in the background. for that reason, I always resume with screen -d -r to ensure that if another shell is attached to my screen session, it will be detached before I resume it on my current system. if you log in from a bunch of different systems, you may have accidentally left yourself attached to an active screen session on a different computer.CTRL+ a, p to switch to the previous window in your screen session.CTRL+ a, n to switch to the next window in your screen session.While in a screen session, try ctrl+a,? to learn a few common commands. Screen is a very comprehensive tool, and can do a lot more than what I've described. Then check out the progress of your long-running process! When you come back to your laptop: ssh -r #resume the screen session It is super awesome! ssh #start a screen sessionĬTRL+ a, d to detatch from your screen session exit #disconnect from the server, while run-a-long-process continues
