This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
sessionnames [2006-06-04 08:18] 68.150.20.40 |
sessionnames [2010-01-21 23:48] asciiphil Links to man:titles changed to title_examples |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Session Names ===== | ||
+ | Each session has a name associated with it that can be used when attaching to them. Session names are displayed when listing your sessions using screen -list. | ||
+ | |||
+ | < | ||
+ | root@backup: | ||
+ | There are screens on: | ||
+ | 7637.dispatch | ||
+ | 7545.playing | ||
+ | 7680.irc | ||
+ | 7684.logs | ||
+ | 7693.pts-5.backup | ||
+ | 4 Sockets in / | ||
+ | </ | ||
+ | |||
+ | The default session name is constructed from the tty and host names, which isn't very useful as you can see from the last entry above. | ||
+ | |||
+ | < | ||
+ | screen -S mySessionName | ||
+ | </ | ||
+ | |||
+ | It's even more useful when combined with -R, in which case the -S can be omitted. | ||
+ | |||
+ | < | ||
+ | screen -xR mySessionName | ||
+ | </ | ||
+ | |||
+ | ===== Changing the Session Name ===== | ||
+ | |||
+ | Session names can be changed on an existing session using the : | ||
+ | |||
+ | < | ||
+ | C-a : | ||
+ | </ | ||
+ | |||
+ | ===== Closing Notes ===== | ||
+ | Session names, combined with window [[title_examples]], |