Name
whoami
Synopsis
whoami
Print the username based on effective user ID. On Solaris,
this command is in /usr/ucb.
On GNU/Linux and Mac OS X, it’s equivalent to id -un
.
Get Unix in a Nutshell, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.