2015-04-26 09:38:41 +00:00
|
|
|
.Dd April 24, 2015
|
2015-02-02 17:34:26 +00:00
|
|
|
.Dt ID 1
|
|
|
|
.Os ubase
|
|
|
|
.Sh NAME
|
|
|
|
.Nm id
|
|
|
|
.Nd print real and effective user and group IDs
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
2015-04-26 09:38:41 +00:00
|
|
|
.Op Fl n
|
|
|
|
.Op Fl g | u | G
|
2015-02-02 17:34:26 +00:00
|
|
|
.Op Ar user | uid
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
|
|
|
prints user and group information of the calling process to standard output.
|
2014-02-27 14:27:28 +00:00
|
|
|
If a login name or uid is specified, the user and group information of that
|
|
|
|
user is displayed.
|
2015-02-02 17:34:26 +00:00
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width Ds
|
2015-04-26 09:38:41 +00:00
|
|
|
.It Fl n
|
|
|
|
Print names instead of ID numbers, for -g, -u, and -G.
|
2015-02-02 17:34:26 +00:00
|
|
|
.It Fl g
|
2014-06-11 14:42:33 +00:00
|
|
|
Print only the effective group ID.
|
2015-02-02 17:34:26 +00:00
|
|
|
.It Fl u
|
2014-06-11 14:42:33 +00:00
|
|
|
Print only the effective user ID.
|
2015-02-02 17:34:26 +00:00
|
|
|
.It Fl G
|
2014-04-13 15:40:40 +00:00
|
|
|
Display group information as whitespace separated numbers, in no particular order.
|
2015-02-02 17:34:26 +00:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr who 1
|