Difference between revisions of "32v 1m who"

From Computer History Wiki
Jump to: navigation, search
(New page: WHO(1) UNIX Programmer's Manual WHO(1) == NAME == who - who is on the system == SYNOPSIS == who [ who-file ] [ am I ] == DESCRIPTION == _W_...)
 
 
Line 4: Line 4:
  
 
== NAME ==
 
== NAME ==
    who  -  who is on the system
+
who  -  who is on the system
  
 
== SYNOPSIS ==
 
== SYNOPSIS ==
    who [ who-file ] [ am I ]
+
who [ who-file ] [ am I ]
  
 
== DESCRIPTION ==
 
== DESCRIPTION ==
    _W_h_o, without an argument, lists the login name, terminal
+
'''Who''', without an argument, lists the login name, terminal
    name, and login time for each current UNIX user.
+
name, and login time for each current UNIX user.
  
    Without an argument, _w_h_o examines the /etc/utmp file to
+
Without an argument, '''who''' examines the /etc/utmp file to
    obtain its information.  If a file is given, that file is
+
obtain its information.  If a file is given, that file is
    examined.  Typically the given file will be /usr/adm/wtmp,
+
examined.  Typically the given file will be /usr/adm/wtmp,
    which contains a record of all the logins since it was
+
which contains a record of all the logins since it was
    created.  Then _w_h_o lists logins, logouts, and crashes since
+
created.  Then '''who''' lists logins, logouts, and crashes since
    the creation of the wtmp file.  Each login is listed with
+
the creation of the wtmp file.  Each login is listed with
    user name, terminal name (with `/dev/' suppressed), and date
+
user name, terminal name (with `/dev/' suppressed), and date
    and time.  When an argument is given, logouts produce a
+
and time.  When an argument is given, logouts produce a
    similar line without a user name.  Reboots produce a line
+
similar line without a user name.  Reboots produce a line
    with `x' in the place of the device name, and a fossil time
+
with `x' in the place of the device name, and a fossil time
    indicative of when the system went down.
+
indicative of when the system went down.
  
    With two arguments, as in `who am I' (and also `who are
+
With two arguments, as in `who am I' (and also `who are
    you'), _w_h_o tells who you are logged in as.
+
you'), '''who''' tells who you are logged in as.
  
 
== FILES ==
 
== FILES ==
Line 32: Line 32:
  
 
== SEE ALSO ==
 
== SEE ALSO ==
    [[32v 2m getuid|getuid(2)]], [[32v 5m utmp|utmp(5)]]
+
[[32v 2m getuid|getuid(2)]], [[32v 5m utmp|utmp(5)]]
  
 
[[Category:32v man section 1]]
 
[[Category:32v man section 1]]

Latest revision as of 18:55, 12 August 2010

WHO(1) UNIX Programmer's Manual WHO(1)


NAME

who - who is on the system

SYNOPSIS

who [ who-file ] [ am I ]

DESCRIPTION

Who, without an argument, lists the login name, terminal name, and login time for each current UNIX user.

Without an argument, who examines the /etc/utmp file to obtain its information. 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.

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

FILES

    /etc/utmp

SEE ALSO

getuid(2), utmp(5)