{
    "content": [
        {
            "type": "text",
            "text": "# groups(1) (man)\n\n## TLDR\n\n> Print group memberships for a user.\n\n- Print group memberships for the current user:\n  `groups`\n- Print group memberships for a list of users:\n  `groups {{username1 username2 ...}}`\n\n*Source: tldr-pages*\n\n---\n\n**Summary:** groups - print the groups a user is in\n\n**Synopsis:** groups [OPTION]... [USERNAME]...\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| — | --version | — | output version information and exit |\n\n## See Also\n\n- getent(1)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (2 lines)\n- **DESCRIPTION** (5 lines) — 1 subsections\n  - --version (2 lines)\n- **AUTHOR** (2 lines)\n- **REPORTING BUGS** (3 lines)\n- **COPYRIGHT** (5 lines)\n- **SEE ALSO** (8 lines)\n\n## Full Content\n\n### NAME\n\ngroups - print the groups a user is in\n\n### SYNOPSIS\n\ngroups [OPTION]... [USERNAME]...\n\n### DESCRIPTION\n\nPrint  group  memberships  for each USERNAME or, if no USERNAME is specified, for the current\nprocess (which may differ if the groups database has changed).\n\n--help display this help and exit\n\n#### --version\n\noutput version information and exit\n\n### AUTHOR\n\nWritten by David MacKenzie and James Youngman.\n\n### REPORTING BUGS\n\nGNU coreutils online help: <https://www.gnu.org/software/coreutils/>\nReport any translation bugs to <https://translationproject.org/team/>\n\n### COPYRIGHT\n\nCopyright © 2020 Free Software Foundation, Inc.  License GPLv3+: GNU GPL version 3  or  later\n<https://gnu.org/licenses/gpl.html>.\nThis  is free software: you are free to change and redistribute it.  There is NO WARRANTY, to\nthe extent permitted by law.\n\n### SEE ALSO\n\ngetent(1)\n\nFull documentation <https://www.gnu.org/software/coreutils/groups>\nor available locally via: info '(coreutils) groups invocation'\n\n\n\nGNU coreutils 8.32                          January 2026                                   GROUPS(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "groups",
        "section": "1",
        "mode": "man",
        "summary": "groups - print the groups a user is in",
        "synopsis": "groups [OPTION]... [USERNAME]...",
        "tldr_summary": "Print group memberships for a user.",
        "tldr_examples": [
            {
                "description": "Print group memberships for the current user",
                "command": "groups"
            },
            {
                "description": "Print group memberships for a list of users",
                "command": "groups {{username1 username2 ...}}"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "",
                "long": "--version",
                "arg": null,
                "description": "output version information and exit"
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "getent",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/getent/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 5,
                "subsections": [
                    {
                        "name": "--version",
                        "lines": 2,
                        "long": "--version"
                    }
                ]
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "REPORTING BUGS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 8,
                "subsections": []
            }
        ]
    }
}