.\" Copyright (c) 1980, 1990, 1991 Regents of the University of California. .\" All rights reserved. .\" .\" %sccs.include.redist.roff% .\" .\" @(#)whoami.1 6.2 (Berkeley) 04/23/91 .\" .Dd .Dt WHOAMI 1 .Os BSD 3 .Sh NAME .Nm whoami .Nd print effective current user id .Sh SYNOPSIS .Nm whoami .Sh DESCRIPTION .Nm Whoami prints your effective user id. It works even if you are .Xr su Ns 'd , while .Dq Li who am i does not since it uses .Pa /var/run/utmp . .Sh FILES .Bl -tag -width /etc/passwd .It Pa /etc/passwd Name data base .El .Sh SEE ALSO .Xr who 1 .Sh HISTORY The .Nm command appeared in .Bx 3.0 .