欢迎光临
我们一直在努力

id命令详解

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

赞(0)
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。