In bash I can start a named screen by doing

screen -S test

If I type

ctrl-a A new_screen_name

it only changes the title of the screen. When I do a

screen -r

I see the session name is still the same.

link|improve this question

60% accept rate
feedback

1 Answer

up vote 5 down vote accepted

From info screen:

-- Command: sessionname [NAME]
(none)
Rename the current session. Note that for screen -list' the name shows up with the process-id prepended. If the argument NAME is omitted, the name of this session is displayed. _Caution_: Among other problems, the$STY' environment variable still reflects the old name. Use of this command is strongly discouraged. Use the `-S' commandline option if you need this feature. The default is constructed from the tty and host names.

link|improve this answer
Thanks for the answer. The command given in the comment was especially what I needed. – D W Sep 9 '10 at 21:28
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.