ID(1)

名称
id - display current user and group ID names

大纲

id [-a]

描述

The id command displays the current real and effective user and group ID names or values. If the value does not have a corresponding entry in /etc/passwd or /etc/group, the value will be displayed without the corresponding name. The optional -a flag will display the group set on systems which support supplementary groups (see initgroups(3)).

文件

/etc/group
    组账户信息。

/etc/passwd
    用户账户信息。

参见

getgid(2), getgroups(2), getuid(2), initgroups(3)