1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-21 22:22:07 +02:00
tldr/pages/common/id.md
2025-03-13 04:41:47 +02:00

28 lines
645 B
Markdown

# id
> Display current user and group identity.
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/id-invocation.html>.
- Display current user's ID (UID), group ID (GID) and groups to which they belong:
`id`
- Display the current user identity:
`id {{[-un|--user --name]}}`
- Display the current user identity as a number:
`id {{[-u|--user]}}`
- Display the current primary group identity:
`id {{[-gn|--group --name]}}`
- Display the current primary group identity as a number:
`id {{[-g|--group]}}`
- Display an arbitrary user's ID (UID), group ID (GID) and groups to which they belong:
`id {{username}}`