GROUPS(1)
β¨ NAME β¨
groups β prints the group memberships for each USERNAME, or, if you didn't hand it a USERNAME at all, for the current process (and yes bestie, that can be different if the groups database has changed π). This is the General Commands Manual page for it, section 1, and it's lowkey one of the shortest glow-ups in the whole coreutils friend group π
πΈ SYNOPSIS πΈ
groups [OPTION]... [USERNAME]...
π¦ DESCRIPTION π¦
Okay so, here's the tea β: groups prints group memberships for each USERNAME you give it. And if you give it no USERNAME? Then it prints them for the current process instead.
That last bit is the part people sleep on β the current process can differ from what you'd expect if the groups database has changed. So like, the answer you get is the answer for this process, right here, right now. No cap. π
That's literally it. It prints group memberships and it goes home. Iconic behavior, honestly. π
π OPTIONS π
-h,--helpβ prints the help. The little "hey here's how I work" moment π«Ά-V,--versionβ prints the version. Gotta know which era of the software you're living in β[USERNAME]β the optional positional bestie(s). Pass one, pass a few β the synopsis said[USERNAME]..., so the invitation is open β¨
π VERSION π
v(uutils coreutils) 0.12.0
π EXAMPLES π
Print group memberships for the current user:
groups
Print group memberships for a list of users:
groups username1 username2 ...
Real talk though, bestie π β the examples are provided by the tldr-pages project https://tldr.sh under the CC BY 4.0 License. And please note: as uutils is a work in progress, some examples might fail. Not being shady, just being honest π
π that's a wrap π
Slay, you now know everything about groups. Go forth and vibe check your memberships, bestie π§π
Signing off from uutils coreutils v0.12.0, dated 2026-09-25, page GROUPS(1) from the General Commands Manual β periodt. π β¨
π¦ where this page comes from
- ubuntu stonking: rust-coreutils 0.12.0-1ubuntu2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms