/dev/tty

A device on any Unix system which is connected to the controlling terminal (if it exists) of the process open(2)ing it. Of course, in most cases simply writing to standard output does exactly the same thing; however, /dev/tty can be useful on occasions, such as when file descriptorredirection has occurred so that no currently open file references the terminal. Example: