NAME
id – print real and effective user and groups IDs:显示真实和有效的用户和组ID
SYNOPSIS
id [OPTION] … [USER]
DESCRIPTION
Print user and group information for the specified USER, or(when USER omitted) for the current user.:显示指定USER的用户和组信息,或者不指定USER,显示当前用户的用户和组信息。
-g,–group
print only the effective group ID。只显示有效的组ID
-G,–groups
print all group IDs:显示指定用户所在的所有组,包括附加组。
-n,–name
print a name instead of a number , for -ugG
显示名字,而不是数字,和-ugG分别组合使用
-r –real
print the real ID instead of the effective ID , with -ugG:显示真实ID,而不是有效ID,和ugG分别组合使用。
-u,–user
print only the effective user ID