codeaprendiz.github.io

DevOps Essentials

View on GitHub

tty

NAME

tty - print the file name of the terminal connected to standard input

SYNOPSIS

tty [OPTION]…

DESCRIPTION

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

OPTIONS

[admin@hostname ~]$ tty
/dev/pts/0

[ngcs_tg@dolnxprdxnvm33 ~]$ tty /dev/pts/0