When the screen is called, it creates a single window with a shell in it (or the specified command) and then gets out of your way so that you can use the program as you normally would. Then, at any time, you can create new (full-screen) windows with other programs in them (including more shells), kill existing windows, view a list of windows, turn output logging on and off, copy-and-paste text between windows, view the scrollback history, switch between windows in whatever manner you wish, etc. All windows run their programs completely independent of each other. Programs continue to run when their window is currently not visible and even when the whole screen session is detached from the user's terminal. When a program terminates, screen (per default) kills the window that contained it. If this window was in the foreground, the display switches to the previous window; if none are left, screen exits. Shells usually distinguish between running as login-shell or sub-shell.
screen -r
man screen #For Help
General commands
Everyscreen
command begins withCtrl-a
.
Ctrl-a c
Create new window (shell) Ctrl-a k
Kill the current window Ctrl-a w
List all windows (the current window is marked with "*")Ctrl-a 0-9
Go to a window numbered 0-9 Ctrl-a n
Go to the next window Ctrl-a
Ctrl-a
Toggle between the current and previous windowCtrl-a [
Start copy mode Ctrl-a ]
Paste copied text Ctrl-a ?
Help (display a list of commands)Ctrl-a
Ctrl-\
Quit screen
Ctrl-a D
(Shift-d)Power detach and logout Ctrl-a d
Detach but keep shell window open
No comments:
Post a Comment