Screen: Unterschied zwischen den Versionen
Aus SchnallIchNet
Cbs (Diskussion | Beiträge) |
Cbs (Diskussion | Beiträge) |
||
Zeile 1: | Zeile 1: | ||
− | == | + | ==basics== |
# To start a new sub session (Virtual Session) type<br/>((ctrl+a) c)<br/>Please ignore the plus (+)symbol, this essentially means "ctrl a then c" | # To start a new sub session (Virtual Session) type<br/>((ctrl+a) c)<br/>Please ignore the plus (+)symbol, this essentially means "ctrl a then c" | ||
# To switch between sessions...<br/>((ctrl+a) <space bar>) | # To switch between sessions...<br/>((ctrl+a) <space bar>) | ||
Zeile 12: | Zeile 12: | ||
# To reattach to a detached session..<br/>"screen -r <11546.pts-5.hostname>" (session name from the output of the screen -list command) | # To reattach to a detached session..<br/>"screen -r <11546.pts-5.hostname>" (session name from the output of the screen -list command) | ||
# To end that session you can either type<br/>"exit" or a (ctrl+d) | # To end that session you can either type<br/>"exit" or a (ctrl+d) | ||
+ | |||
+ | ==screen logging== | ||
+ | ((ctrl-a) H)<br/> | ||
+ | sometimes it's important to keep track of what I do to some servers. this is very easy with screen.<br/> | ||
+ | ((ctrl-a) H) creates an ongoing logging of the session.<br/> | ||
+ | screen will start capature through multiple sessions.<br/> | ||
+ | very useful for capturing what you have done...<br/> | ||
+ | '''manpage says:''' Begins/ends logging of the current window to the file "screenlog.n" | ||
==Siehe auch== | ==Siehe auch== | ||
[[Bash/Misc/Detach|Detach a fg-process from console]] | [[Bash/Misc/Detach|Detach a fg-process from console]] |
Version vom 13. August 2010, 10:36 Uhr
basics
- To start a new sub session (Virtual Session) type
((ctrl+a) c)
Please ignore the plus (+)symbol, this essentially means "ctrl a then c" - To switch between sessions...
((ctrl+a) <space bar>) - To switch between your previous session and the current one..
((ctrl+a) a) - To kill a frozen session...
((ctrl+a) k) - To see a list of available commands...
((ctrl+a) ?) - To see a list of virtual terminals you have open..
((ctrl+a) ") - 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!! ) - To enter copy/scrollback mode.
((ctrl-a) [) or
((ctrl-a) ctrl-[) or
((ctrl-a) esc) (copy) - To view current screen sessions once you are logged out of screen..
"screen -list" - 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) - To reattach to a detached session..
"screen -r <11546.pts-5.hostname>" (session name from the output of the screen -list command) - To end that session you can either type
"exit" or a (ctrl+d)
screen logging
((ctrl-a) H)
sometimes it's important to keep track of what I do to some servers. this is very easy with screen.
((ctrl-a) H) creates an ongoing logging of the session.
screen will start capature through multiple sessions.
very useful for capturing what you have done...
manpage says: Begins/ends logging of the current window to the file "screenlog.n"