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.
If there are several sessions, use: