{
    "content": [
        {
            "type": "text",
            "text": "# groups (man)\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## 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## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION** (1 subsections)\n- **AUTHOR**\n- **REPORTING BUGS**\n- **COPYRIGHT**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "groups",
        "section": "",
        "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": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "groups - print the groups a user is in\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "groups [OPTION]... [USERNAME]...\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Print  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",
                "subsections": [
                    {
                        "name": "--version",
                        "content": "output version information and exit\n",
                        "long": "--version"
                    }
                ]
            },
            "AUTHOR": {
                "content": "Written by David MacKenzie and James Youngman.\n",
                "subsections": []
            },
            "REPORTING BUGS": {
                "content": "GNU coreutils online help: <https://www.gnu.org/software/coreutils/>\nReport any translation bugs to <https://translationproject.org/team/>\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "Copyright © 2023 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",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "getent(1)\n\nFull documentation <https://www.gnu.org/software/coreutils/groups>\nor available locally via: info '(coreutils) groups invocation'\n\nGNU coreutils 9.4                           January 2026                                   GROUPS(1)",
                "subsections": []
            }
        }
    }
}