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?
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?
It means you are already in screen named "bash"
Just exit it with "exit" command. And run again "screen bash"
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.