'\" t .\" Title: id .\" Author: Julianne Frances Haugh .\" Generator: DocBook XSL Stylesheets vsnapshot .\" Date: 2022-11-08 .\" Manual: 用户命令 .\" Source: shadow-utils 4.13 .\" Language: Chinese Simplified .\" .TH "ID" "1" "2022-11-08" "shadow\-utils 4\&.13" "用户命令" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "名称" id \- display current user and group ID names .SH "大纲" .HP \w'\fBid\fR\ 'u \fBid\fR [\-a] .SH "描述" .PP The \fBid\fR 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 \fB\-a\fR flag will display the group set on systems which support supplementary groups (see \fBinitgroups\fR(3))\&. .SH "文件" .PP /etc/group .RS 4 组账户信息。 .RE .PP /etc/passwd .RS 4 用户账户信息。 .RE .SH "参见" .PP \fBgetgid\fR(2), \fBgetgroups\fR(2), \fBgetuid\fR(2), \fBinitgroups\fR(3)