Read/Write to a serial terminal using ‘cat’ command

I have come out of hiding to bring you a quick Linux tip. You don’t need any sort of terminal emulation program in order to read and write to a serial device, just ‘cat’.

cat > /dev/ttyUSB0 | cat /dev/ttyUSB0

Obviously the device name will change depending on your use.

That’s it,
-Sam Ellicott
Soli Deo Gloria

Leave a comment