Glossary: Linux for Developers
id
Also written: id -u, whoami
`id` shows your user ID and groups, `id -u` prints just the user ID (0 for root), and `whoami` prints your user name.
Glossary: Linux for Developers
Also written: id -u, whoami
`id` shows your user ID and groups, `id -u` prints just the user ID (0 for root), and `whoami` prints your user name.