Hi Friends,
Today I am going to share a very small but usable thing for all Linux lovers.
Most of us must faced such a situation in our life where you are working to your Linux server and somehow for power shutdown of PC problem you are unexpectedly disconnected from your remote session.
If you were not doing something which depends on session, then it is fine. But, otherwise you are in big trouble e.g. if you were upgrading your server OS remotely.
After a long googling and digging here and there, I found really a very good solution of this issue.
Just connect to your remote server and issue the following commands...
root@remote#screen -ls
This command will show all sessions which are detached.
Take the session Id from the output of the above command. Then issue...
root@remote#screen -r <Session_Id>
Yahoo ! Your detached session is re-opened.
Enjoy !!