Scroll to navigation

TTY(1) General Commands Manual TTY(1)

NAME

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

SYNOPSIS

tty [-s|--silent] [-h|--help] [-V|--version]

DESCRIPTION

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

OPTIONS

print nothing, only return an exit status
Print help
Print version

VERSION

v(uutils coreutils) 0.8.0

EXAMPLES

Print the file name of this terminal:

tty

The examples are provided by the tldr-pages project <https://tldr.sh> under the CC BY 4.0 License. Please note that, as uutils is a work in progress, some examples might fail.

2026-05-17