{
    "content": [
        {
            "type": "text",
            "text": "# systemd-cgls(1) (man)\n\n**Summary:** systemd-cgls - Recursively show control group contents\n\n**Synopsis:** systemd-cgls [OPTIONS...] [CGROUP...]\nsystemd-cgls [OPTIONS...] --unit|--user-unit [UNIT...]\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| — | --all | — | Do not hide empty control groups in the output. |\n| -l | --full | — | Do not ellipsize process tree members. |\n| -u | --unit | — | Show cgroup subtrees for the specified units. |\n| — | --user-unit | — | Show cgroup subtrees for the specified user units. |\n| -k | — | — | Include kernel threads in output. |\n| -M | — | — | Limit control groups shown to the part corresponding to the container MACHINE. |\n| -h | --help | — | Print a short help text and exit. |\n| — | --version | — | Print a short version string and exit. |\n| — | --no-pager | — | Do not pipe output into a pager. |\n\n## See Also\n\n- systemd(1)\n- systemctl(1)\n- systemd-cgtop(1)\n- systemd-nspawn(1)\n- ps(1)\n- SYSTEMD-CGLS(1)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (4 lines)\n- **DESCRIPTION** (10 lines)\n- **OPTIONS** (2 lines) — 9 subsections\n  - --all (2 lines)\n  - -l --full (2 lines)\n  - -u --unit (2 lines)\n  - --user-unit (2 lines)\n  - -k (2 lines)\n  - -M --machine= (2 lines)\n  - -h --help (2 lines)\n  - --version (2 lines)\n  - --no-pager (2 lines)\n- **EXIT STATUS** (2 lines)\n- **SEE ALSO** (5 lines)\n\n## Full Content\n\n### NAME\n\nsystemd-cgls - Recursively show control group contents\n\n### SYNOPSIS\n\nsystemd-cgls [OPTIONS...] [CGROUP...]\n\nsystemd-cgls [OPTIONS...] --unit|--user-unit [UNIT...]\n\n### DESCRIPTION\n\nsystemd-cgls recursively shows the contents of the selected Linux control group hierarchy in\na tree. If arguments are specified, shows all member processes of the specified control\ngroups plus all their subgroups and their members. The control groups may either be specified\nby their full file paths or are assumed in the systemd control group hierarchy. If no\nargument is specified and the current working directory is beneath the control group mount\npoint /sys/fs/cgroup/, shows the contents of the control group the working directory refers\nto. Otherwise, the full systemd control group hierarchy is shown.\n\nBy default, empty control groups are not shown.\n\n### OPTIONS\n\nThe following options are understood:\n\n#### --all\n\nDo not hide empty control groups in the output.\n\n#### -l --full\n\nDo not ellipsize process tree members.\n\n#### -u --unit\n\nShow cgroup subtrees for the specified units.\n\n#### --user-unit\n\nShow cgroup subtrees for the specified user units.\n\n#### -k\n\nInclude kernel threads in output.\n\n#### -M --machine=\n\nLimit control groups shown to the part corresponding to the container MACHINE.\n\n#### -h --help\n\nPrint a short help text and exit.\n\n#### --version\n\nPrint a short version string and exit.\n\n#### --no-pager\n\nDo not pipe output into a pager.\n\n### EXIT STATUS\n\nOn success, 0 is returned, a non-zero failure code otherwise.\n\n### SEE ALSO\n\nsystemd(1), systemctl(1), systemd-cgtop(1), systemd-nspawn(1), ps(1)\n\n\n\nsystemd 249                                                                          SYSTEMD-CGLS(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "systemd-cgls",
        "section": "1",
        "mode": "man",
        "summary": "systemd-cgls - Recursively show control group contents",
        "synopsis": "systemd-cgls [OPTIONS...] [CGROUP...]\nsystemd-cgls [OPTIONS...] --unit|--user-unit [UNIT...]",
        "flags": [
            {
                "flag": "",
                "long": "--all",
                "arg": null,
                "description": "Do not hide empty control groups in the output."
            },
            {
                "flag": "-l",
                "long": "--full",
                "arg": null,
                "description": "Do not ellipsize process tree members."
            },
            {
                "flag": "-u",
                "long": "--unit",
                "arg": null,
                "description": "Show cgroup subtrees for the specified units."
            },
            {
                "flag": "",
                "long": "--user-unit",
                "arg": null,
                "description": "Show cgroup subtrees for the specified user units."
            },
            {
                "flag": "-k",
                "long": null,
                "arg": null,
                "description": "Include kernel threads in output."
            },
            {
                "flag": "-M",
                "long": null,
                "arg": null,
                "description": "Limit control groups shown to the part corresponding to the container MACHINE."
            },
            {
                "flag": "-h",
                "long": "--help",
                "arg": null,
                "description": "Print a short help text and exit."
            },
            {
                "flag": "",
                "long": "--version",
                "arg": null,
                "description": "Print a short version string and exit."
            },
            {
                "flag": "",
                "long": "--no-pager",
                "arg": null,
                "description": "Do not pipe output into a pager."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "systemd",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/systemd/1/json"
            },
            {
                "name": "systemctl",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/systemctl/1/json"
            },
            {
                "name": "systemd-cgtop",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/systemd-cgtop/1/json"
            },
            {
                "name": "systemd-nspawn",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/systemd-nspawn/1/json"
            },
            {
                "name": "ps",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/ps/1/json"
            },
            {
                "name": "SYSTEMD-CGLS",
                "section": "1",
                "url": "https://www.chedong.com/phpMan.php/man/SYSTEMD-CGLS/1/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 10,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 2,
                "subsections": [
                    {
                        "name": "--all",
                        "lines": 2,
                        "long": "--all"
                    },
                    {
                        "name": "-l --full",
                        "lines": 2,
                        "flag": "-l",
                        "long": "--full"
                    },
                    {
                        "name": "-u --unit",
                        "lines": 2,
                        "flag": "-u",
                        "long": "--unit"
                    },
                    {
                        "name": "--user-unit",
                        "lines": 2,
                        "long": "--user-unit"
                    },
                    {
                        "name": "-k",
                        "lines": 2,
                        "flag": "-k"
                    },
                    {
                        "name": "-M --machine=",
                        "lines": 2,
                        "flag": "-M"
                    },
                    {
                        "name": "-h --help",
                        "lines": 2,
                        "flag": "-h",
                        "long": "--help"
                    },
                    {
                        "name": "--version",
                        "lines": 2,
                        "long": "--version"
                    },
                    {
                        "name": "--no-pager",
                        "lines": 2,
                        "long": "--no-pager"
                    }
                ]
            },
            {
                "name": "EXIT STATUS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 5,
                "subsections": []
            }
        ]
    }
}