I am running a simulation command in a server using ssh, from my terminal. The simulation is running for 10+ hours. I am expecting output after 15+ hours. During its execution it was echoing on the terminal some random results. What is important to me is the end results that it will generate during last 30 mins. of the simulation before it ends. I lost Internet connection so my ssh broke, but then when I again connected to ssh, I checked that my program was still running in the remote server.   PID TTY          TIME CMD 2063 ?        00:00:00 sshd 2064 pts/14   00:00:00 bash 2156 pts/14   01:19:14 sim-cache15446 ?        00:00:00 sshd15448 pts/30   00:00:00 bash15593 pts/30   00:00:03 sim-cache15636 ?        00:00:00 sshd15637 pts/31   00:00:00 bash15652 pts/31   00:00:00 psBut since it is running in background I will never see its output. Can someone tell me how can I bring the running process into current terminal, so that whatever this process echoes here after I can see that in the terminal? 
Get current execution of command out in ssh?
linux;ssh;terminal
fg command does that. Here's a link or use man fg for help.