Files
cheatsheet-tldr/tldr/groups
2025-01-19 00:18:40 +00:00

19 lines
436 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# groups
> Print group memberships for a user.
> See also: `groupadd`, `groupdel`, `groupmod`.
> More information: <https://www.gnu.org/software/coreutils/manual/html_node/groups-invocation.html>.
- Print group memberships for the current user:
`groups`
- Print group memberships for a list of users:
`groups {{username1 username2 ...}}`