Reattaching to Screen - Linux

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

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

Marcus Vance
Author

Marcus Vance

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.