Latest web development tutorials

Linux tty command

Linux command Daquan Linux command Daquan

Linux tty command displays the machine is connected to standard input file name.

In the Linux operating system, all peripherals have their name and code, the name of the code to a special type of file stored in the / dev directory. You can perform tty (teletypewriter) query command terminal currently used by the file name.

grammar

tty [-s][--help][--version]

Parameter Description:

  • -s --quiet or --silent or no information is displayed, only the return status code.
  • --help online help.
  • --version display version information.

Examples

Displays the current terminal

# tty
/dev/pts/4

Linux command Daquan Linux command Daquan