id
UsersBeginner In simulator In real LinuxPrint user and group IDs
Name: id = identity
You can practise it right away in the simulator, and use it in real Linux mode too.
Description
id shows a user's UID, primary GID and all groups, for you or a named user. These numbers are what permission checks actually use.
Syntax
id [OPTION]... [USER]Common options
| -u / --user | Only the user ID |
| -g / --group | Only the primary group ID |
| -G / --groups | All group IDs |
| -n / --name | Show names instead of numbers (with -u/-g) |