How to access attached screen after connection dropped?

Yeah! I got this problem last day while accessing one attached screen session after connection dropped. We already have the knowledge in screen command. You will get more details from here, screen command usages and examples. The screen command under the Unix is used to execute some process under or inside a screen. That means you can simply detach from the screen and keep working on that server. You can use screen command, because you don’t want your flakey internet connection to affect whatever you are working on, and sure enough, the connection drops.

Error that I got

[[email protected] ~]# screen -r 1310.backup
There is a screen on:
        1310.backup     (Attached)
There is no screen to be resumed matching 1310.backup.

Because that session dropped connection. Here is the solution, there is a switch with the screen command to connect to a dropped session. Please see this;

Switch : D


Here the screen session is “1310.backup“.

# screen -D -r 1310.backup

That’s it!!

Related topics

1, 20+ Rsync command switches
2, Tar command with example
3, LSOF command details

Arunlal Ashok

Linux Server Administrator. I'm dealing with Linux servers since 2012. I started this blog to share and discuss my ideas with the world. Check My Profile!! in uPwork (oDesk) and let me know if you need any assistance. Thanks!!

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *