tty command in Linux with examples
Linux operating system represents everything in a file system, the hardware devices that we attach are also represented as a file. The terminal is also represented as a file. There a command exists called tty which displays information related to terminal. The tty command of terminal basically prints the file name of the terminal connected to standard input. tty is short of teletype, but popularly known as a terminal it allows you to interact with the system by passing on the data (you input) to the system, and displaying the output produced by the system.
Syntax:
tty [OPTION]....

Options:
- -s, –silent, –quiet : Prints nothing, only returns an exit status.
- –help : It will display the help message and exit.
- –version : Prints the version information and exits.
Recommended Posts:
- bg command in Linux with Examples
- until command in Linux with Examples
- bc command in Linux with examples
- apt-get command in Linux with Examples
- scp command in Linux with Examples
- tar command in Linux with examples
- man command in Linux with Examples
- rcp Command in Linux with examples
- gcc command in Linux with examples
- seq command in Linux with Examples
- last command in Linux with Examples
- id command in Linux with examples
- let command in Linux with Examples
- fc Command in Linux with Examples
- cc command in Linux with Examples
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.




