screen
Table of Content
screen¶
When using USB console cable on Macbook to connect to a device...
# confirm the USB (console cable) device connected on Macbook
ls /dev
ls -1 /dev | grep -i usb
# start local logging using script
cd ~/tmp
script 2024-05-08-{work description}.log
# start console window using screen
sudo screen /dev/tty.usbserial-AL0187PC
# list available sessions
sudo screen -list
# to free active console lock
sudo screen -x {id of the existing session}
# while on console
# exit or kill the window
Ctrl-A k
# to enable scroll up the terminal
Ctrl-A [
# to exit the scroll-mode
ESC
# once you are back on the terminal out of the screen session
# stop logging using script
Ctrl-D