id

Show your current user ID, group ID, and group memberships

id shows uid (numeric user ID), gid (primary group), and groups (all group memberships). Essential for debugging permission errors: check id to see if the app user is in the right group.

Example

$ id
uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu),27(sudo),1001(docker)
Tip: Type it yourself in the terminal below - reading is not the same as doing.