Linux

  1. Home
  2. Computing & Technology
  3. Linux

Text-Terminals on Linux

From Authors, for About.com

6.1 Serial Port Terminals

The computer considers each serial port to be a "device". It's sometimes called a terminal device since at one time terminals were the most common use for a serial port. For each such serial port there is a special file in the /dev (device) directory. /dev/tts/0 (or /dev/ttyS0) is the special file for the serial port known as COM1 in the DOS/Windows world. The device filesystem notation: tts/0 is replacing the older ttyS0 notation. But the older notation will be often used in this howto since it is still widely used and often still works (using symbolic links) on the newer device filesystems.

To send text to a terminal you may redirect standard output of some command-line command to the appropriate special file. For example typing "echo test > /dev/ttyS1" at the command prompt should send the word "test" to the terminal on ttyS1 (COM2) provided you have write permission on /dev/ttyS1. Similarly, typing "cat my_file > /dev/ttyS0" will send the contents of the file my_file to COM1 (ttyS0).

* License

* Text Terminal How-To Index

Explore Linux

About.com Special Features

Build Your Own Website

Step-by-step advice on how to do everything from choosing a Web host to promoting your content. More >

Connect Your Home Computers

Easy ways to connect two computers for networking purposes. More >

Linux

  1. Home
  2. Computing & Technology
  3. Linux
  4. Linux HowTos
  5. Text-Terminals How-To
  6. Text-Terminals on Linux - 6.1 Serial Port Terminals

©2009 About.com, a part of The New York Times Company.

All rights reserved.