tty

Print file name of terminal on standard input, print the file name of the terminal connected to standard input. It prints `not a tty' if standard input is not a terminal.

SYNTAX
      tty [option]...

OPTIONS

   -s
   --silent
   --quiet
           Print nothing; only return an exit status.

 Exit status:

     0 if standard input is a terminal
     1 if standard input is not a terminal
     2 if given incorrect arguments
     3 if a write error occurs

"Behind every great fortune there is a crime" ~ Honore de Balzac

Related:

env - Display, set, or remove environment variables
hostname - Print or set system name
id - Print user and group id's
logname - Print current login name
uname - Print system information
users - Print login names of users currently logged in
who - Print who is currently logged in
whoami - Print the current user id and name (`id -un')
Equivalent Windows command: SET %COMPUTERNAME%


© Copyright SS64.com 1999-2013
Some rights reserved