Adding Screen in SSH session to retrieve back screen in case your session timeout or lost due to power failure on your desktop
or accidentally closed your running SSH session
Checking the 'screen' utility is installed or not
-bash-4.4$ which screen
/usr/bin/screen
Adding the screen
-bash-4.4$ screen -S screen_name
Note: screen_name is name of the screen, you can name it as you like
Listing the screen
bash-4.4$ screen -list
There are screens on:
25585.screen_name (Attached)
784.node1 (Detached)
2 Sockets in /export/home/applprd/.screen.
Call back the screen
bash-4.4$screen -dr screen_name
Tags:
UNIX