whoami — identify the effective user
cheat sheet · Ubuntu 24.04; GNU coreutils 9.4 https://lab.dimsanych.ru/en/wiki/whoami/Cheat sheet
-
whoamieffective user -
id -unumeric UID -
id -unsame user name -
whoami --helphelp
Options
There are no operational options: the plain invocation does the job. The golden
version provides only --help and --version. Do not pass another user name as
an operand; use id student for that account. Success returns zero; inability to
resolve the name is an error.