Skip to content
Related Articles

Related Articles

tty command in Linux with examples
  • Difficulty Level : Easy
  • Last Updated : 19 Feb, 2021
GeeksforGeeks - Summer Carnival Banner

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.

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.

My Personal Notes arrow_drop_up
Recommended Articles
Page :