blob: d3da2ef0e6b9b002244635a7fbb262ba42464727 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# screen(1)
```sh
# Create new session.
screen
# List active session.
screen -list
# Attach to specific session.
screen -r SESSION
```
## Options
```sh
# Enable logfile, default name screenlog.0.
screen -L
# Enable log and set logfile name.
screen -L -Logfile out.txt
```
## Keymaps
```sh
Ctrl-A d # Detach from session.
Ctrl-A + \ # Terminate session.
Ctrl-A + : # Open cmand prompt.
kill # Kill session.
```
## Examples
USB serial console.
```sh
# 1500000 -> baudrate
# cs8 -> 8 data bits
# -cstopb -> 1 stop bit
# -parenb -> no parity bit
# see stty(1) for all settings.
screen /dev/ttyUSB0 1500000,cs8,-cstopb,-parenb
# Print current tty settings.
sudo stty -F /dev/ttyUSB0 -a
```
|