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

[root@vps ~]# 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

Usage

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 Cloud Infrastructure / DevOps Engineer. I'm dealing Linux servers since 2012. I started this blog to share and discuss my ideas.

Always happy for an open discussion! Write to arun (@) crybit (dot) com. Check about me for more details. About this blog and our strong members, check The team CryBit.com

Leave a Reply

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