You are here: >

Linux and Unix tty command

tty commandAbout tty
tty syntax
tty examples
Related commands
Linux and Unix main page

About tty

Print the file name of the terminal connected to standard input.

tty syntax

tty [OPTION]...


-s, --silent, --quiet Print nothing, only return an exit status.
--help display this help and exit.
--version output version information and exit.

tty examples


Running tty by itself will display the current tty session as shown below:


ps — Report the status of a process or processes.