Skip to main content

screen and tmux

command screen tmux
list -ls ls
with name -S name new -s name
attach -r [title] a [-t title]
prefix Ctrl+a Ctrl+b
new prefix+c prefix+c
switch prefix+num prerix+num
list screen prefix+" prerix+w
copy mode prefix+esc prefix+[

screen

it can connect to serial port. default baud is 9600

screen /dev/ttyS0 [baud rate]

it can create a new window which executes a specific program

screen watch -n 5 ntpq -pn