{
    "mode": "man",
    "parameter": "systemd-cgls",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/systemd-cgls/1/json",
    "generated": "2026-05-30T07:09:43Z",
    "synopsis": "systemd-cgls [OPTIONS...] [CGROUP...]\nsystemd-cgls [OPTIONS...] --unit|--user-unit [UNIT...]",
    "sections": {
        "NAME": {
            "content": "systemd-cgls - Recursively show control group contents\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "systemd-cgls [OPTIONS...] [CGROUP...]\n\nsystemd-cgls [OPTIONS...] --unit|--user-unit [UNIT...]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "systemd-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",
            "subsections": []
        },
        "OPTIONS": {
            "content": "The following options are understood:\n",
            "subsections": [
                {
                    "name": "--all",
                    "content": "Do not hide empty control groups in the output.\n",
                    "long": "--all"
                },
                {
                    "name": "-l --full",
                    "content": "Do not ellipsize process tree members.\n",
                    "flag": "-l",
                    "long": "--full"
                },
                {
                    "name": "-u --unit",
                    "content": "Show cgroup subtrees for the specified units.\n",
                    "flag": "-u",
                    "long": "--unit"
                },
                {
                    "name": "--user-unit",
                    "content": "Show cgroup subtrees for the specified user units.\n",
                    "long": "--user-unit"
                },
                {
                    "name": "-k",
                    "content": "Include kernel threads in output.\n",
                    "flag": "-k"
                },
                {
                    "name": "-M --machine=",
                    "content": "Limit control groups shown to the part corresponding to the container MACHINE.\n",
                    "flag": "-M"
                },
                {
                    "name": "-h --help",
                    "content": "Print a short help text and exit.\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "--version",
                    "content": "Print a short version string and exit.\n",
                    "long": "--version"
                },
                {
                    "name": "--no-pager",
                    "content": "Do not pipe output into a pager.\n",
                    "long": "--no-pager"
                }
            ]
        },
        "EXIT STATUS": {
            "content": "On success, 0 is returned, a non-zero failure code otherwise.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "systemd(1), systemctl(1), systemd-cgtop(1), systemd-nspawn(1), ps(1)\n\n\n\nsystemd 249                                                                          SYSTEMD-CGLS(1)",
            "subsections": []
        }
    },
    "summary": "systemd-cgls - Recursively show control group contents",
    "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"
        }
    ]
}