Skip to content

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.

Where the book teaches it

Related terms

gid and uidgroup