In Linux, everything is a file. Even any hardware device connected to the system is represented as a special file. So it shouldn’t come as a surprise that a terminal is also represented as a file. There exists a command dubbed tty that displays terminal related information.
Source: Howtoforge Linux Howtos und Tutorials – Read More