Reference

rust-tty(1)

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

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

-s, --silent

print nothing, only return an exit status

-h, --help

Print help

-V, --version

Print version

VERSION

v0.0.30

History

-V since Debian 13 (Trixie); -h since Debian 13 (Trixie).

--quiet until Debian 12 (Bookworm).