macOS / binaries /

whoami

/usr/bin/whoami
Display effective user id

The whoami utility has been obsoleted by the id utility, and is equivalent to “id -un”.

source: man