linux log serial to binary file code example Example: linux log serial to binary file (stty raw; cat > received.log) < /dev/<your_serial_port>