Linux
screen
GNU Screen terminal multiplexer.
Basic Usage
| Command | Description |
|---|---|
screen | Start a new screen session. |
screen -S name | Start a named session. |
screen -ls | List running sessions. |
screen -r | Reattach to a detached session. |
screen -r name | Reattach to a named session. |
screen -d | Detach a running session (remote). |
Key Bindings (inside screen)
Default prefix is Ctrl + a.
| Key | Action |
|---|---|
c | Create new window. |
n | Next window. |
p | Previous window. |
" | List windows. |
d | Detach from session. |
k | Kill current window. |
[ | Enter copy/scrollback mode. |
? | Help. |
Serial Connection
Connect to a serial port (e.g., USB to Serial adapter).
screen /dev/ttyUSB0 115200
To exit a serial session: Ctrl + a then k (kill) or \ (quit).