O'Reilly logo

Practical Linux by Bill Ball, John Ray, Michael Turner, M. Drew Streib

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating the /dev/modem Device

You don't have to always remember which serial port is connected to your modem. An easy way to determine what port your modem is attached to is to create a device called /dev/modem. You can create one from the command line using the ln command.

Creating /dev/modem with the ln Command

You can also create the /dev/modem device from the command line by using the ln (link) command. To create /dev/modem if your modem is connected to ttyS0, log in as the root operator and enter the following:

# ln -s /dev/ttyS0 /dev/modem

This command line creates a symbolic link, /dev/modem, which points to the ttyS0 serial port. Check this link with the ls (list directory) command, like so:

 # ls -l /dev/modem lrwxrwxrwx 1 root root ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required