In the end its just another file descriptor so most file commands will work on it. If you just want to do command line stuff, I'd use setserial to set up the parameters you want (baud rate, parity, stop bits, ...) and then use whatever to read and write the device file (cat, echo, netcat, socat, ...). Or just use a program like minicom.
If you want to write a C program to do it you'll need to look at tcgetattr and tcsetattr for getting the serial info and setting it up how you want.
|