- 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 d
on the keyboard.
- Click
- Create a new terminal window in a screen session.
- Click
Ctrl-a c
on the keyboard.
- Click
- Rename the current terminal window.
- Click
Ctrl-a Shift-a
on 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 Space
on the keyboard.
- Click
- Redirect to the former terminal window.
- Click
Ctrl-a Backspace
on the keyboard.
- Click
- Kill the current screen window
- Click
Ctrl-a k
on the keyboard.
- Click
- Make the screen session scrollable.
- Click
Ctrl-a ESC
on the keyboard.
- Click
- Scroll up in a screen session.
- Press
Ctrl-A
on the keyboard and pressEsc
. - Press the
Up
andDown
arrow keys or thePgUp
andPgDn
keys to scroll through previous output. - Press
Esc
to exit scrollback mode.
- Press