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

Post navigation

Arunlal A

Engineer. Linux enthusiast. Traveller. DevOps learner and practitioner. I enjoy working with Linux, DevOps, automation, and technology while exploring new places along the way. I use this space to share my experiences, learnings, experiments, and things I discover along the journey. Whether you're a seasoned DevOps professional or just getting started, let's connect, learn, and grow together. Happy coding, automating, and deploying!

One thought on “How to access attached screen after connection dropped?”

Leave a Reply

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