ID(1) General Commands Manual ID(1)

idreturn user identity

id [-G | -g | -u [-nr]] [user]

The id utility writes the user and group names and numeric IDs, of the calling process, to the standard output. If a user is specified, the user and group IDs of that user are written to the standard output.

Write the different group IDs.
Write only the effective group ID.
Write names instead of ID numbers.
Write the real ID instead of the effective ID.
Write only the effective user ID.

The id utility exits 0 on success, and >0 if an error occurs.

who(1)

The id utility is compliant with the specification.

March 14, 2020 EltaninOS