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

Senior System Developer at Zeta. Linux lover. Traveller. Let's connect! Whether you're a seasoned DevOps pro or just starting your journey, I'm always eager to engage with like-minded individuals. Follow my blog for regular updates, connect on social media, and let's embark on this DevOps adventure together! Happy coding 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 *