Screen related concepts
- Session: The screen command creates a set of processes from the Linux terminal to manage the operations of multiple windows, a process group called a session.
- Window: One session can create one or more windows, each of which is equivalent to an SSH login and can execute any shell program.
- Disconnected session: A session can be interrupted and can be re-entered to do unfinished work.
Screen common operations
- Screen-s name to create a new session
- screen-d name detach from external (detach) a session
- C-a D temporarily from inside the current session (hold down CTRL and a, and then press D)
- Screen-r name Reattach an already existing session
- Screen-ls List all Sessions
- Screen-xs name quit to end a session from outside
- C-a quit to end the current session from the inside
Window common operations
Note: You can use the Window command only in a screen session
- C-a S Transverse Slicing window
- c-a | Portrait Split window
- C-a tab moves to the next split area
- C-a c Create a window
- C-a K Kill a window
- C-a n switch to the next window
- C-A p switch to the previous window
- C-a c-a switch back and forth in the most recently used window
- C-a W Display list of all windows
- C-a 0...9 Switch to NO. 0 in session ... 9 windows
- C-a X to end the divided area
- C-a Q Close all other areas outside the current region
- C-a Z put the current session in the background to run, with the Shell's FG command can go back
- C-a "To switch windows from the list
- C-a a Settings window alias
Linux Screen Command