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分別組合使用
id命令詳解
-r --real
print the real ID instead of the effective ID , with -ugG:顯示真實ID,而不是有效ID,和ugG分別組合使用。
id命令詳解
-u,--user
print only the effective user ID
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章