1.\" Copyright (c) 1980, 1990, 1991 Regents of the University of California. 2.\" All rights reserved. 3.\" 4.\" %sccs.include.redist.roff% 5.\" 6.\" @(#)whoami.1 6.2 (Berkeley) 04/23/91 7.\" 8.Dd 9.Dt WHOAMI 1 10.Os BSD 3 11.Sh NAME 12.Nm whoami 13.Nd print effective current user id 14.Sh SYNOPSIS 15.Nm whoami 16.Sh DESCRIPTION 17.Nm Whoami 18prints your effective user id. 19It works even if you are 20.Xr su Ns 'd , 21while 22.Dq Li who am i 23does not since 24it uses 25.Pa /var/run/utmp . 26.Sh FILES 27.Bl -tag -width /etc/passwd 28.It Pa /etc/passwd 29Name data base 30.El 31.Sh SEE ALSO 32.Xr who 1 33.Sh HISTORY 34The 35.Nm 36command appeared in 37.Bx 3.0 . 38