logo

utils-std

Collection of commonly available Unix tools

id.1 (1007B)


  1. .\" utils-std: Collection of commonly available Unix tools
  2. .\" Copyright 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
  3. .\" SPDX-License-Identifier: MPL-2.0
  4. .Dd 2023-10-02
  5. .Dt ID 1
  6. .Os
  7. .Sh NAME
  8. .Nm id
  9. .Nd return user identity
  10. .Sh SYNOPSIS
  11. .Nm
  12. .Op Fl Ggu
  13. .Op Fl nr
  14. .Op Ar user
  15. .Sh DESCRIPTION
  16. By default
  17. .Nm
  18. prints the current
  19. .Ql uid ,
  20. .Ql gid
  21. and
  22. .Ql groups
  23. of the current session.
  24. If
  25. .Ar user
  26. is specifies then it reads from the
  27. .Xr passwd 5
  28. and
  29. .Xr group 5
  30. entries.
  31. .Sh OPTIONS
  32. .Bl -tag -width Ds
  33. .It Fl G
  34. Output only groups (effective, real, and supplementary) separated by spaces.
  35. .It Fl g
  36. Output only the effective group ID.
  37. .It Fl u
  38. Output only the effective user ID.
  39. .It Fl n
  40. Output names instead of IDs.
  41. .It Fl r
  42. Output the real IDs instead of effective IDs.
  43. .El
  44. .Sh EXIT STATUS
  45. .Ex -std
  46. .Sh SEE ALSO
  47. .Xr group 5 ,
  48. .Xr passwd 5
  49. .Sh STANDARDS
  50. .Nm
  51. should be compliant with the
  52. .St -p1003.1-2008
  53. specification.
  54. .Sh AUTHORS
  55. .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me