Reattaching to screen - Linux

We run several screen instances from one box, eg. :

27185.pts-53.CentOS-57-64-minimal (Detached)

27209.pts-53.CentOS-57-64-minimal (Detached)

27281.pts-53.CentOS-57-64-minimal (Detached)

Is there a way to ‘name’ a screen id, so instead of having to remember the exact PID, i use screen -x 1 for pid 27185, screen -x 2 for pid 27209 and screen -x 3 for pid 27281 ??

1 Answer

When you start the screen, you can use -S to set the sessionname (Source: )

After you are in screen, you can rename the Session by entering the command mode: Ctrl+a :sessionname

You can read about the : here:

and the list of available commands is here:

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like