Linux HowTo's - Advance Linux HowTo's |
Written by Allen Sanabria |
Sunday, 11 May 2008 17:46 |
I've been using screen for the past 3 years and for the first time I've decided to seek out more functionality out of it. So last week I spent about 2 hours looking up some of the different functionality that I can use in the day to day. Let me tell you I found a bunch of goodies that I use now religiously (For a week now ;) ).
So for those of you who do not know what a screen session is... (STRAIGHT FROM THE MAN PAGES) Screen is a full-screen window manager that multiplexes a physical terminal between several processes (typically interactive shells). Essentially you can have 30 terminal sessions inside one terminal and much more.....
To run Screen all you need to do is type "screen" in your terminal. You more then likely do not have it installed by default. So for those of you who have the distributions below...
To start a new screen session all you have to do is type "screen"
Now that you are in a screen session, the fun begins now... 1- To start a new sub session (Virtual Session) type ((ctrl+a) c) Please ignore the plus (+)symbol, this essentially means "ctrl a then c" 2- To switch between sessions... ((ctrl+a) 3- To switch between your previous session and the current one.. ((ctrl+a) a)
4- To kill a frozen session...
((ctrl+a) k)
5- To see a list of available commands...
((ctrl+a) ?)
6- To see a list of virtual terminals you have open..
((ctrl+a) ")
7- To Detach from a screen session and not lose any of your virtual terminals...
((ctrl+a) d)( This is one of the best features of screen!! )
8- To view current screen sessions once you are logged out of screen..
"screen -list" 9- To reattach to an Attached session (Session that was not detached properly) "screen -D -r <11546.pts-5.hostname>" (session name from the output of the screen -list command) 10- To reattach to a detached session.. "screen -r <11546.pts-5.hostname>" (session name from the output of the screen -list command) 10- To end that session you can either type "exit" or a (ctrl+d) |
Thursday, 13 January 2011
Screen HowTo Part 1
Labels:
linux
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment