I run a Fedora 10 variant and I use the following sequence to send data to the Arduino from the command line. The commands I use are all standard *nix, AFAIK.
Connect the USB cable between the PC and the Arduino. The Arduino will reset and begin running a sketch from the beginning. My sketches are set up for 9600 baud serial commo.
Initialize communication once with the following command line on the PC:
stty -F /dev/ttyUSB0 cs8 9600 ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke noflsh -ixon -crtscts -igncr -hupcl(I found that line somewhere in the Forum here, and modified it slightly so I could deal with end-of-line in the Arduino code. Sorry, I can’t remember the thread, but if you search for the beginning of that string you could probably locate the thread it came from.)
Run the following shell script:
echo "Enter lines to send (Enter [Ctrl-c] to quit)"
echo $userinput > /dev/ttyUSB0
I can also send pre-canned text files to the Arduino with:
cat file.txt > /dev/ttyUSB0
Sorry, I have no need to receive data from the Arduino, so I can’t help you there.