Screen is a very handy tool for managing serial port connections on your computer.

Its also very hand for collaborating and usage over SSH—because your connection is inside of a screen session, even if you lose your SSH connection the screen session will stay alive and you can re-attach to it later

See the example at the bottom for output of these commands.

Finding devices

Use the ls command to list the devices that are connected

On Linux

ls /dev/ttyACM*

On MacOS

ls /dev/tty.usbmodem

Connecting to devices

Replace the 0 with the identifier you found from listing files in the /dev

screen /dev/ttyACM0

If you see [screen is terminating] there might be an existing screen session for the device.

Checking if there are existing connections

You can check which serial sessions exist, I (Flynn) have never figured out the naming but you should be able to name them

screen -list

Reconnecting to a device

screen -r 2325.pts-10.w6yx-Shuttle-P302