• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

who

who

who Displays who is logged in.
who [-mTuH] [<file>]

who am i

who displays a list of all users currently logged on, showing for each user the login name, tty name, the date and time of login, and hostname, if not local.
-m Only prints information about the current terminal (POSIX way of saying “Who am I?”).
-T Prints a character after the username indicating the state of the terminal line: + if the terminal is writable; - if it is not writable; ? if a bad line is encountered.
-u Prints the idle time for each user.
-H Writes column headings above the regular output.
am i Returns the invoker's real username.
<file> Gathers information from the specified <file>, rather than the default /var/run/utmp. An alternative <file> is usually /var/log/wtmp. The wtmp file contains a record of every login, logout, crash, shutdown and date change since wtmp was truncated or created. If /var/log/wtmp is being used as the file, the username may be empty or one of these special characters: |, }, ~. Logouts produce an output line without any username.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint