Usage: id [OPTION]... [USERNAME]
Print information for USERNAME or the current user.
Options:
-g Print only the group ID -u Print only the user ID -n print a name instead of a number (with for -ug) -r Print the real user ID instead of the effective ID (with -ug) |
Example:
$ id uid=1000(andersen) gid=1000(andersen) |