id.1 (1026B)
- .\" utils-std: Collection of commonly available Unix tools
- .\" Copyright 2017 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
- IEEE Std 1003.1-2024 (“POSIX.1”)
- specification.
- .Sh AUTHORS
- .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me