I am sure we all have problem maintaining a lot of windows opened in the desktop and getting stressed out with Alt-Tab :-( . I was comfortable during those Linux days where the KDE terminal would allow me to open multiple windows over the terminal. I was searching for such an utility for unix telnet session after I switched to Unix. Thanks to Ashok ( of Force10) for introducing me to this utility. I was getting some gyan in his desktop and it was at that time I saw this wonder boy using this tool. I started using it and loviinngg it. I normally open a telnet session to unix box and from then I open a screen session( like screen -S testbed1). Then from the screen session I open multiple windows, for each of the testbed components or code or any other shells. i name each window and use function keys to traverse between windows. I am listing the commands that I frequently use in my daily work. This might be helpful to some beginner some day or other.
1. command line options
-list ===> list all the sessions
-d [pid.sessionname] ===> detach a session.
-r [pid.sessionname] ===> reconnect a detached session
-r owner/[pid.sessionname] ===> reconnect to another user's session
-wipe ===> wipe out all dead sessions
-x ===> Attach to an existing session on sharing basis
-S ===> name a session
2. Create a new session
Ctrl-a c
3. Get help
Ctrl-a ?
4. Start/stop logging session
Ctrl-a H
[a file called screenlog.x will be created in the home directory]
5. Detach a session
Ctrl-a d
6. Detach a session and logout ( power detach)
Ctrl-a D
7. Switching between windows
Ctrl-a ' ===> prompt for window number
Ctrl-a " ===> display a list of window to choose to switch
Ctrl-a 0..9 ===> switch to window 0 to 9
Ctrl-a Ctrl-a ===> switch to the previous window
Ctrl-a n ===> switch to the next window
Ctrl-a p ===> switch to the previous window
bindkey -k k1 select 0 ===> have this in the rc file. this implies F1 is mapped to
window_0
8. Name a window
Ctrl-a A
9. Clear the window
Ctrl-a C
10. Lock a session
Ctrl-a x
11. Enter copy mode
Ctrl-a Esc
12. Split the current region into two new ones
Ctrl-a S
13.Delete all regions but the current one.
Ctrl-a Q
14. Commands
to enter the command line mode ==> Ctrl-a :
quit ===> kill all windows and terminate screen
histroy ===> history of previous commands
Useful Links
============
http://polishlinux.org/howtos/screen-tips-tricks/
http://tutorials.assistprogramming.com/unix-screen-utility-how-do-i-use-that.html
http://gentoo-wiki.com/TIP_Using_screen
http://www.pixelbeat.org/lkdb/screen.html
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment