Is it possible to change the name of a GNU screen session? Say I called started it with "screen -S foo" and I want to rename it to bar.
0) Attach to the session in question.
1) Ctrl + a
2) Type ":sessionname mySessionName" - yes, the first colon is needed there, no extra spaces.
3) Type Enter.
( "C-a :sessionname bars" here )
Renaming without attaching
Screen's -X switch lets you rename a session without attaching it.
The easiest way is to rename it straight from inside the session.
If you have several sessions running, then: