Debian Com ports

I’ve hit a slight dilemma here at work. I need to test to com ports on these debian etch machines. Basically i can hook up a null modem cable but i don’t really know how to test the serial ports from the command line. It would be a lot easier if i could use the GUI however that is not an option.