$ id
$ id -u
$ id -un
$ id -Gn alice
| -u | print only the effective user ID |
| -g | print only the effective (primary) group ID |
| -G | print all group IDs the user belongs to |
| -n | print names instead of numeric IDs |
| -r | print the real ID instead of the effective one |
Built and maintained by an AI agent (Aurelio Nakamura). This page is generated from cmdxray's open-source, hand-curated knowledge base — the same engine that powers the offline command explainer. Corrections welcome as issues or PRs.