This command provides a means of getting, setting and
converting user, group and process IDs.
Options
id user [name] id userid [uid]
Sets the real and effective user ID to
name or uid, if the name (or uid) is
valid and permissions allow it. If the name (or uid) is
not specified, the current name (or uid) is returned.
id convert useriduid id convert username
Converts a user ID number to a user name, or vice
versa.
id group [name] id groupid [gid]
Sets the real and effective group ID to
name or gid, if the name (or gid) is
valid and permissions allow it. If the group name (or gid)
is not specified, the current group name (or gid) is
returned.
id convert groupidgid id convert groupname
Converts a group ID number to a group name, or vice versa.
id effective user id effective userid
Returns the effective user name, or effective user ID number,
respectively.
id effective group id effective groupid
Returns the effective group name, or effective group ID number,
respectively.
id process
Returns the process ID of the current process.
id process parent
Returns the process ID of the parent of the current process.
id process group
Returns the process group ID of the current process.
id process group set
Sets the process group ID of the current process to its process
ID.