- List out all existing screen sessions.
screen -ls - Initiate new screen window.
screen -S <screen-name> - Kill useless screen session.
kill <screen-id> - Enter an existing detached screen session.
screen -r <screen-id> - Enter an existing attached screen session (hint: detach first)
screen -rd <screen-id> - Address screen backspace problem
$ export TERM=screen - Exit from the current screen window (detach)
- Click
Ctrl-a don the keyboard.
- Click
- Create a new terminal window in a screen session.
- Click
Ctrl-a con the keyboard.
- Click
- Rename the current terminal window.
- Click
Ctrl-a Shift-aon the keyboard.
- Click
- List all terminal windows in a screen session.
- Click
Ctrl-a Shift-"on the keyboard.
- Click
- Redirect to the next terminal window.
- Click
Ctrl-a Spaceon the keyboard.
- Click
- Redirect to the former terminal window.
- Click
Ctrl-a Backspaceon the keyboard.
- Click
- Kill the current screen window
- Click
Ctrl-a kon the keyboard.
- Click
- Make the screen session scrollable.
- Click
Ctrl-a ESCon the keyboard.
- Click
- Scroll up in a screen session.
- Press
Ctrl-Aon the keyboard and pressEsc. - Press the
UpandDownarrow keys or thePgUpandPgDnkeys to scroll through previous output. - Press
Escto exit scrollback mode.
- Press
