Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question

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.

share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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