This shows you the differences between two versions of the page.
| — |
man:sessionnames [2017-07-07 08:45] (current) 163.244.22.10 created |
||
|---|---|---|---|
| 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]], | ||