Quoting Charles Iliya Krempeaux ([EMAIL PROTECTED]): > 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.
On my system the first user (i.e. Console on Alt-F1) gets logged on to /dev/tty1. And the second /dev/tty2 ... > 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 same with /dev/tty0. -- Best regards, Denis Oliver Kropp .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" convergence integrated media GmbH -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with "unsubscribe directfb-dev" as subject.
