multiplexing several interactive shells in a single terminal.
To start a screen session is pretty simple:
(byobu as an alternative to screen can be used in ubuntu)
user@ubuntu:~$ screen
This starts a screen session with a particular process id(pid).
To resume/kill the screen session, this pid is used.
For people who would like to deal with names rather than pid numbers, a name can be associated with the screen session with:
+ user@ubuntu:~$ screen -S my_screen_name
Ctrl-a is the screen-control. All the screen related features is prefixed with ctrl-a.
+ Name the tab:
ctrl-a : title tab_name
+ creating a new tab:
ctrl-a c
ctrl-a <space>
ctrl-a p (previous)
ctrl-a n (next)
+ kill the tab
ctrl-a :kill
+ detach screen:
ctrl-a d
[detached from 4372.my_screen_name]
+ look at the existing screens
user@ubuntu:~$ screen -ls
There is a screen on:
4372.my_screen_name (11/23/2010 11:30:08 AM) (Detached)
1 Socket in /var/run/screen/S-vprasad.
+ reattach a screen
user@ubuntu:~$ screen -dr pid/screen_name




No comments:
Post a Comment