Name
id — stdin stdout - file -- opt --help --version
Synopsis
id [options] [username]
Every user has a unique, numeric user
ID, and a default group with a unique, numeric
group ID. The id command prints these values along with
their associated user and group names:
$ id uid=500(smith) gid=500(smith) groups=500(smith),6(disk),490(src),501(cdwrite)
Useful options
|
|
Print the effective user ID and exit. |
|
|
Print the effective group ID and exit. |
|
|
Print the IDs of all other groups to which the user belongs. |
|
|
Print names (for
users and groups) rather than numeric IDs. Must be combined
with |
|
|
Print login values
instead of effective values. Must be combined with |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access