Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wrote a Java application that connects to the serial port of the GSM modem. On Windows the serial ports have names like COM3, but in Linux Redhat 6.0 I had to switch to something like ttySx (X is number that came after S in /dev/ directory). When I plug my modem in to Linux there are no serial entries in /dev (just ttyUSBx), but on Windows it works fine. What am I doing wrong?

share|improve this question

Well, those (ttyUSB{0..2}) are the serial devices and are the ones you want your application to use.

share|improve this answer
I used these (ttyUSB{0..2}) but it does not work either – danarj Oct 3 '12 at 9:33
Please update your question with information on how exactly it does not work (what, you're trying to do, what you're expecting and what you're seeing) – Stéphane Chazelas Oct 3 '12 at 10:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.