Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
WHO(1)			    General Commands Manual			WHO(1)

NAME
       who - who is logged in on the system

SYNOPSIS
       who [ who-file ]	[ am i ]

DESCRIPTION
       Used  without  arguments,  who lists the	login name, terminal name, and
       login time for each current user.  who gets this	information  from  the
       /etc/utmp file.

       If  a filename argument is given, the named file	is examined instead of
       /etc/utmp.  Typically the named file is /var/adm/wtmp, which contains a
       record of all logins since it was created.  In this case, who lists lo-
       gins, logouts, and crashes.  Each login is listed with user name,  ter-
       minal name (with	/dev/ suppressed), and date and	time.  Logouts produce
       a similar line without a	user name.  Reboots produce a line with	`~' in
       place  of the device name, and a	fossil time indicating when the	system
       went down.  Finally, the	adjacent pair of entries `|' and `}'  indicate
       the system-maintained time just before and after	a date command changed
       the system's idea of the	time.

       With two	arguments, as in `who am i' (and also `who is who'), who tells
       who  you	are logged in as:  it displays your hostname, login name, ter-
       minal name, and login time.

EXAMPLES
	      example% who am i
	      example!ralph  ttyp0     Apr 27 11:24
	      example%

	      example% who
	      mktg   ttym0   Apr 27 11:11
	      gwen   ttyp0   Apr 27 11:25
	      ralph	  ttyp1	  Apr 27 11:30
	      example%

FILES
       /etc/utmp
       /var/adm/wtmp

SEE ALSO
       login(1), w(1), whoami(1), utmp(5V), locale(5)

			       23 September 1987			WHO(1)

NAME | SYNOPSIS | DESCRIPTION | EXAMPLES | FILES | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=who&sektion=1&manpath=SunOS+4.1.3>

home | help