views:

49

answers:

2

I accidently deleted /var/run/screen/S-root/25771.pts-0 and when I try to run screen again

screen bash ...

it reports:

/var/run/screen/S-root/25771.pts-0: No such file or directory

How can I recover it?

A: 

It means you are already in screen named "bash"

Just exit it with "exit" command. And run again "screen bash"

silent
I tried that , but with no luck...
httpinterpret
answer tested and updated :)
silent
A: 

IMHO if you deleted the screen socket, there is no method to recover that screen instance.

You have to exit from screen and run it again.

andcoz