id
Display current user and group identity.
- Display current user's ID (UID), group ID (GID) and groups to which they belong:
id
- Display the current user identity as a number:
id -u
- Display the current group identity as a number:
id -g
- Display an arbitrary user's ID (UID), group ID (GID) and groups to which they belong:
id {username}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).