groups(1)

groups1

Show group memberships

Usage

groups [user]

Overview

The groups utility has been obsoleted by the id(1) utility, and is equivalent to id -Gn [user]. The command id -p is suggested for normal interactive use.

The groups utility displays the groups to which you (or the optionally specified user) belong.

Exit status

The groups utility exits 0 on success, and >0 if an error occurs.

Releases

61 releases since OpenBSD 2.1; the text changed 9 times.

  1. 2.1
  2. 2.2–2.3
  3. 2.4–2.5
  4. 2.6
  5. 2.7–2.9
  6. 3.0–3.3
  7. 3.4–4.1
  8. 4.2–4.4
  9. 4.5–4.8
  10. 4.9–8.0

From man 8.0-current-20261101 in OpenBSD 8.0-current (2026-11-01). Parsed by carta from the page's mdoc source.