BSD 4_3_Tahoe development
[unix-history] / usr / man / cat1 / who.0
WHO(1) UNIX Programmer's Manual WHO(1)
N\bNA\bAM\bME\bE
who - who is on the system
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
w\bwh\bho\bo [ who-file ] [ a\bam\bm I\bI ]
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
_\bW_\bh_\bo, without any argument, reads the /etc/utmp file, and
lists the login name, terminal name, and login time for each
user currently logged into the system. If a single argument
is given, _\bw_\bh_\bo uses that file instead of /etc/utmp. Typi-
cally, that file will be /usr/adm/wtmp, which contains a
record of all the logins, logouts, crashes, shutdowns and
time changes since it was created. In either case, each
login will be listed with the user name, the terminal name
(with "/dev/" suppressed), login date and time, and, if
applicable, the host logged in from.
If /usr/adm/wtmp is being used as the file, the user name
may be empty or one of the special characters '|', '}' and
'~'. Logouts produce an output line without any user name.
For more information on the special characters, see utmp(5).
With two arguments, as in `who am I' (and also `who are
you'), _\bw_\bh_\bo tells you who you are logged in as.
F\bFI\bIL\bLE\bES\bS
/etc/utmp
/usr/adm/wtmp
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
last(1), users(1), getuid(2), utmp(5)
Printed 7/9/88 December 10, 1986 1