Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ who(1N) — UTek W2.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

utmp(5)

users(1n)

udpd(8n)

tcpd(8n)



WHO(1N)                 COMMAND REFERENCE                 WHO(1N)



NAME
     who, users, u - who's logged in on local machines or on the
     current host system

SYNOPSIS
     who [ -q ] [ -s ] [ -H ] [ -T ] [ -N ] [who-filename]
     who [ am I ]
     who [ -r ] [ -H ] [remote-hosts]
     users

DESCRIPTION
     Who, without an argument, lists the loginname, terminal
     name, login time, and idle time for each current UTek user.
     The commands users and u are short forms of who that lists
     only the names (equivalent to who -q).

     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, logouts, and
     crashes since the creation of the wtmp file.  Each login is
     listed with username, terminal name (with /dev/ suppressed),
     and date and time.  When an argument is given, logouts
     produce a similar line without a username.  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 the arguments, am I (or am i) who tells who you are
     logged in as.

     The idle time is the time since the last input by the user.
     If the user is active (idle time < 1 min) a period will be
     printed; if the user has left the line hanging (idle time >
     24 hrs) the word "old" will be printed.  It can be
     suppressed with the -s switch.

     The -r switch without any argument polls all machines on the
     local network, and prints the output.  Only machines which
     provide the systat/udp service will answer (on UTek this
     service is provided by udpd).  If a list of hosts is given
     then they are sequentially read using the systat/tcp service
     (on UTek this service is usually provided by tcpd).

OPTIONS
     -r[host(s)]
         Report users on remote systems, if none given then use
         broadcasts.  This is the rwho command.

     -q  Report only usernames separated by spaces.  This is the
         users(1n) command.

     -H  Print out a header before the output.



Printed 10/17/86                                                1





WHO(1N)                 COMMAND REFERENCE                 WHO(1N)



     -s  Short form, don't check or print idle time.

     -T  Print status of tty:
         +      writeable
         -      not writeable
         x      exclusive open
         ?      hung (no carrier)

     -N  Network who (i.e. run by tcpd); print carriage
         return/line feed after each name (for non-UNIX type
         hosts).

RETURN VALUE
     [USAGE]        Incorrect command line syntax. Execution
                    terminated.

     [NP_ERR]       An error occurred that was not a system
                    error.  Execution terminated.

     [P_ERR]        A system error occurred. Execution
                    terminated.  See intro(2) for more
                    information on system errors.

     [NP_WARN]      An error warranting a warning message
                    occurred. Execution continues.

CAVEATS
     The format of the remote who output may vary, no standard
     format is required.

SEE ALSO
     utmp(5), users(1n), udpd(8n), tcpd(8n).























Printed 10/17/86                                                2





































































%%index%%
na:72,120;
sy:192,414;
de:606,2049;
op:2655,405;3204,401;
rv:3605,567;
ca:4172,139;
se:4311,164;
%%index%%000000000130

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026