Name
id
- id
options
Provides various functions related to getting, setting, and converting user, group, and process identifiers. Some functions can be performed only by the superuser. Under Windows only the host and process options are implemented.
- id user
[
name
] Without a
name
option, return the current username. With an option, sets the real and effective user toname
.- id userid
[
uid
] Without a
uid
option, return the current numeric user ID. With an option, set the real and effective user touid
.- id convert userid
uid
Return the username corresponding to numeric user ID
uid
.- id convert user
name
Return the numeric user ID corresponding to user
name
.- id group
[
name
] Without a
name
option, return the current group ID name. With an option, set the real and effective group ID toname
.- id groupid
[
gid
] Without a
gid
option, return the current numeric group ID. With an option, set the real and effective group ID togid
.- id groups
Return a list of group names for the current process.
- id groupids
Return a list of numeric group IDs for the current process.
- id convert groupid
gid
Return the group name corresponding to numeric group ID
gid
.- id convert group
name
Return the numeric group ID corresponding to group
name
.- id effective user
Return the effective username.
- id effective userid
Return the effective user ID number.
- id effective group
Return the effective group name.
- id effective groupid
Return the effective group ID number.
- id host
Return the hostname of the system on which the program is running.
- id process
Return ...
Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.