We try to run "bash" with screen. [tng@fedo1 tng]$ screen bash [tng@fedo1 tng]$ [tng@fedo1 tng]$ screen -r There is a screen on: 5294.tty2.fedo1 (Attached) There is no screen to be resumed. [tng@fedo1 tng]$ pstree -p 5294 screen(5294)---bash(5295)---pstree(5315) [tng@fedo1 tng]$ who|grep tng tng tty2 Apr 4 18:08 tng tty3 Apr 4 18:05 tng pts/6 Apr 4 18:22 [tng@fedo1 tng]$ ps -ef|grep "pts/6" tng 5295 5294 0 18:22 pts/6 00:00:00 bash [tng@fedo1 tng]$ ps -ef|grep screen tng 5293 5061 0 18:22 tty2 00:00:00 screen bash [tng@fedo1 tng]$ ps -ef|grep "tty2" tng 5061 4994 0 18:08 tty2 00:00:00 -bash tng 5293 5061 0 18:22 tty2 00:00:00 screen bash I simulate a connection break down, I kill the tty2 session PID 5061 (or just close the session) [tng@fedo1 tng]$ kill -HUP 5061 I relogin. login: tng Password: Last login: Wed Apr 4 18:31:31 on tty2 [tng@fedo1 tng]$screen -d -r I recall the previous session by enter "screen -d -r" ....and all my previous typed commands, my child processes will appear again. Voila NB: to exit "screen" just press CTRL+D