Home Applications
GNU Screen
Quickstart
- Run screen.
- Execute any long-running command.
- Detach from the current screen session:
Ctrl+a d.
- Re-attach to the screen session:
screen -r.
Session management
| Command |
Action |
screen -ls |
List active sessions |
Ctrl+a d |
Detach from the current session |
screen -r [ID] |
Re-attach to session |
Window management
| Key Binding |
Action |
Ctrl+a c |
Create new window with shell |
Ctrl+a " |
Show window list / switch between windows |
Ctrl+a 0 |
Switch to first window |
Ctrl+a A |
Rename current window |
Ctrl+a S |
Split window horizontally |
Ctrl+a | |
Split window vertically |
Ctrl+a tab |
Cycle region focus |
Ctrl+a X |
Close the current region |
Ctrl+a Q |
Close all regions except the current one |
Commands
Enter the command mode: Ctrl+a :.
| Command |
Effect |
| quit |
Close all windows and exit screen session |
| caption mode [string] |
Change caption mode and string. Available modes are: always, splitonly, string [string] |
Customization
Configuration files
- /etc/screenrc (global)
- ~/.screenrc (user)
Force window caption
caption always "%w"
Fix residual editor text
altscreen on