Warning: Undefined array key 5 in
/home/public/screen/inc/changelog.php on line
27
Warning: Undefined array key 6 in
/home/public/screen/inc/changelog.php on line
28
Warning: Undefined array key 3 in
/home/public/screen/inc/changelog.php on line
25
Warning: Undefined array key 4 in
/home/public/screen/inc/changelog.php on line
26
Warning: Undefined array key 5 in
/home/public/screen/inc/changelog.php on line
27
Warning: Undefined array key 6 in
/home/public/screen/inc/changelog.php on line
28
Warning: Undefined array key 5 in
/home/public/screen/inc/changelog.php on line
27
Warning: Undefined array key 6 in
/home/public/screen/inc/changelog.php on line
28
Warning: Undefined array key 3 in
/home/public/screen/inc/changelog.php on line
25
Warning: Undefined array key 4 in
/home/public/screen/inc/changelog.php on line
26
Warning: Undefined array key 5 in
/home/public/screen/inc/changelog.php on line
27
Warning: Undefined array key 6 in
/home/public/screen/inc/changelog.php on line
28
Warning: Undefined array key 5 in
/home/public/screen/inc/changelog.php on line
27
Warning: Undefined array key 6 in
/home/public/screen/inc/changelog.php on line
28
Warning: Undefined array key 3 in
/home/public/screen/inc/changelog.php on line
25
Warning: Undefined array key 4 in
/home/public/screen/inc/changelog.php on line
26
Warning: Undefined array key 5 in
/home/public/screen/inc/changelog.php on line
27
Warning: Undefined array key 6 in
/home/public/screen/inc/changelog.php on line
28
Warning: Undefined array key "userinfo" in
/home/public/screen/inc/common.php on line
1795
Warning: Trying to access array offset on value of type null in
/home/public/screen/inc/common.php on line
1795
Warning: Undefined array key "userinfo" in
/home/public/screen/inc/common.php on line
1795
Warning: Trying to access array offset on value of type null in
/home/public/screen/inc/common.php on line
1795
Warning: Undefined array key "userinfo" in
/home/public/screen/inc/common.php on line
1795
Warning: Trying to access array offset on value of type null in
/home/public/screen/inc/common.php on line
1795
Warning: Undefined array key "userinfo" in
/home/public/screen/inc/common.php on line
1795
Warning: Trying to access array offset on value of type null in
/home/public/screen/inc/common.php on line
1795
Warning: Undefined array key "userinfo" in
/home/public/screen/inc/common.php on line
1795
Warning: Trying to access array offset on value of type null in
/home/public/screen/inc/common.php on line
1795
Warning: Undefined array key "userinfo" in
/home/public/screen/inc/common.php on line
1795
Warning: Trying to access array offset on value of type null in
/home/public/screen/inc/common.php on line
1795
Differences
This shows you the differences between two versions of the page.
| Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
sessionnames [2006-06-04 08:18] 68.150.20.40 |
sessionnames [2021-02-19 19:57] (current) asciiphil old revision restored (2010-01-21 23:48) |
| | ===== 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. |
| | |
| | <code> |
| | root@backup:~# screen -list |
| | There are screens on: |
| | 7637.dispatch (Attached) |
| | 7545.playing (Detached) |
| | 7680.irc (Detached) |
| | 7684.logs (Attached) |
| | 7693.pts-5.backup (Attached) |
| | 4 Sockets in /var/run/screen/S-root. |
| | </code> |
| | |
| | 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. To give a screen a name, you specify it with the -S option. |
| | |
| | <code> |
| | screen -S mySessionName |
| | </code> |
| | |
| | It's even more useful when combined with -R, in which case the -S can be omitted. This causes screen to attach to an existing session with the given session name, or create a new one with that name. Combined with -d or -x, it's a very powerful feature. :) |
| | |
| | <code> |
| | screen -xR mySessionName |
| | </code> |
| | |
| | ===== Changing the Session Name ===== |
| | |
| | Session names can be changed on an existing session using the :sessionname command. |
| | |
| | <code> |
| | C-a :sessionname mySessionName |
| | </code> |
| | |
| | ===== Closing Notes ===== |
| | Session names, combined with window [[title_examples]], makes life a lot easier when you have multiple sessions with multiple windows in each. |