glenda.party
term% ls -F
term% pwd
$home/manuals/unix_v8/1/who
term% cat index.txt
WHO(1)                      General Commands Manual                     WHO(1)



NAME
       who, whois -  who is on the system

SYNOPSIS
       who [-i] [ who-file ]

       who am i

       whois username

DESCRIPTION
       Who,  without an argument, lists the login name, terminal name, and lo‐
       gin time for each current UNIX user.  With the -i  option,  the  report
       includes the number of minutes that the user's terminal has been idle.

       With  two  arguments,  as  in  `who am I' (and also `who are you'), who
       tells who you are logged in as.

       Without an argument, who examines the /etc/utmp file to obtain its  in‐
       formation.   If  a file is given, that file is examined.  Typically the
       given file will be /usr/adm/wtmp, which contains a record  of  all  the
       logins  since  it  was  created.   Then  who lists logins, logouts, and
       crashes since the creation of the wtmp file.  Each login is listed with
       user  name, terminal name (with `/dev/' suppressed), and date and time.
       When an argument is given, logouts produce a  similar  line  without  a
       user  name.  Reboots produce a line with `x' in the place of the device
       name, and a fossil time indicative of when the system went down.

       Whois consults administrative files to identify the  username.   (Actu‐
       ally,  whois uses grep(1) and can locate information by any useful key,
       such as real name or telephone number.)

FILES
       /etc/utmp
       /usr/adm/usrlist
       /etc/passwd

SEE ALSO
       last(1), getuid(1), getuid(2), utmp(5), wtmp(5)



                                                                        WHO(1)