Hello,

On Mon, 2001-12-24 at 11:32, Denis Oliver Kropp wrote:

[...]

> 
> /dev/tty1 is console 1. What's the difference between tty0 and tty?

Because, as users look on to a system, they are given different tty's.
The first user to log in gets /dev/tty0.  The second gets /dev/tty1.
The third gets /dev/tty2.  And so on.

The device /dev/tty is a special one.  For each user it is mapped
to their /dev/tty? device... whatever that may be.  So, if you are
writing a shell script or something, you can always redirect output
to your own script (instead of a file or something) by writing:

    echo "Something" > /dev/tty

and this will automagically forward this to your tty-device (whatever
that is).  So if you are on /dev/tty9, this will be the equivalent of:

    echo "Something" > /dev/tty9

The /dev/tty aliasing just makes things easier for script writers and
programmers.

See ya

     Charles Iliya Krempeaux
     tnt @ linux.ca
     ckrempea @ alumni.sfu.ca



-- 
Info:  To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-dev" as subject.

Reply via email to