logo

utils-std

Collection of commonly available Unix tools
commit: 8ae41b9a6b12c4673cfafabecd0173f649747634
parent 1e3f29258b0e0e1d1731cc535b764c94acff386e
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon,  2 Oct 2023 06:54:06 +0200

cmd/id.1: New

Diffstat:

Acmd/id.155+++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+), 0 deletions(-)

diff --git a/cmd/id.1 b/cmd/id.1 @@ -0,0 +1,55 @@ +.\" utils-std: Collection of commonly available Unix tools +.\" Copyright 2017-2023 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me> +.\" SPDX-License-Identifier: MPL-2.0 +.Dd 2023-10-02 +.Dt ID 1 +.Os +.Sh NAME +.Nm id +.Nd return user identity +.Sh SYNOPSIS +.Nm +.Op Fl Ggu +.Op Fl nr +.Op Ar user +.Sh DESCRIPTION +By default +.Nm +prints the current +.Ql uid , +.Ql gid +and +.Ql groups +of the current session. +If +.Ar user +is specifies then it reads from the +.Xr passwd 5 +and +.Xr group 5 +entries. +.Sh OPTIONS +.Bl -tag -width Ds +.It Fl G +Output only groups (effective, real, and supplementary) separated by spaces. +.It Fl g +Output only the effective group ID. +.It Fl u +Output only the effective user ID. +.It Fl n +Output names instead of IDs. +.It Fl r +Output the real IDs instead of effective IDs. +.El +.Sh EXIT STATUS +.Ex -std +.Sh SEE ALSO +.Xr group 5 , +.Xr passwd 5 +.Sh STANDARDS +.Nm +should be compliant with the +.St -p1003.1-2008 +specification. +.Sh AUTHORS +.An Haelwenn (lanodan) Monnier Aq Mt contact@hacktivis.me