{
    "mode": "man",
    "parameter": "cgget",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/cgget/1/json",
    "generated": "2026-06-03T00:21:52Z",
    "synopsis": "cgget [-n] [-v] [-r <name>] [-g <controller>] [-a] <path> ...\ncgget [-n] [-v] [-r <name>] -g <controller>:<path> ...",
    "sections": {
        "NAME": {
            "content": "cgget - print parameter(s) of given group(s)\n\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "cgget [-n] [-v] [-r <name>] [-g <controller>] [-a] <path> ...\ncgget [-n] [-v] [-r <name>] -g <controller>:<path> ...\n\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Prints  the  parameter(s)  of input cgroup(s).  If neither controller nor variable are speci‐\nfied, the values of all possible variables are displayed.\n\n\n<path> is the name of the cgroup which should be read.  This parameter can be  used  multiple\ntimes.\n\n",
            "subsections": [
                {
                    "name": "-a, --all",
                    "content": "print the variables for all controllers which consist in the  given cgroup\n\n",
                    "flag": "-a",
                    "long": "--all"
                },
                {
                    "name": "-g <controller>",
                    "content": "defines  controllers whose values should be displayed.  This option can be used multi‐\nple times.\n\n",
                    "flag": "-g",
                    "arg": "<controller>"
                },
                {
                    "name": "-g <controller>:<path>",
                    "content": "defines control groups whose values should be displayed.  This option can be used mul‐\ntiple times.\n\n",
                    "flag": "-g"
                },
                {
                    "name": "-h, --help",
                    "content": "display help and exit\n\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "-n",
                    "content": "",
                    "flag": "-n"
                },
                {
                    "name": "-r, --variable <name>",
                    "content": "defines parameter to display.  This option can be used multiple times.\n\n\n",
                    "flag": "-r",
                    "long": "--variable",
                    "arg": "<name>"
                },
                {
                    "name": "-v, --values-only",
                    "content": "print only values, not parameter names.\n\n",
                    "flag": "-v",
                    "long": "--values-only"
                }
            ]
        },
        "EXAMPLES": {
            "content": "$ cgget -r cpuset.cpus -r cpuset.mems first second\nfirst:\ncpuset.cpus=0-1\ncpuset.mems=0\n\nsecond:\ncpuset.cpus=0\ncpuset.mems=0\n\n$ cgget -n -r cpuset.cpus -r cpuset.mems first second\ncpuset.cpus=0-1\ncpuset.mems=0\ncpuset.cpus=0\ncpuset.mems=0\n\n$ cgget -nv -r cpuset.cpus -r cpuset.mems first second\n0-1\n0\n0\n0\n\n$ cgget -n -g cpu /\ncpu.rtperiodus=1000000\ncpu.rtruntimeus=950000\ncpu.shares=1024\n\n\n",
            "subsections": []
        },
        "ENVIRONMENT VARIABLES": {
            "content": "CGROUPLOGLEVEL\ncontrols verbosity of the tool. Allowed values are DEBUG, INFO, WARNING or ERROR.\n\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "cgrules.conf (1), cgcreate (1), cgget (1)\n\n\n\n\nLinux                                        2010-01-18                                     CGGET(1)",
            "subsections": []
        }
    },
    "summary": "cgget - print parameter(s) of given group(s)",
    "flags": [
        {
            "flag": "-a",
            "long": "--all",
            "arg": null,
            "description": "print the variables for all controllers which consist in the given cgroup"
        },
        {
            "flag": "-g",
            "long": null,
            "arg": "<controller>",
            "description": "defines controllers whose values should be displayed. This option can be used multi‐ ple times."
        },
        {
            "flag": "-g",
            "long": null,
            "arg": null,
            "description": "defines control groups whose values should be displayed. This option can be used mul‐ tiple times."
        },
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "display help and exit"
        },
        {
            "flag": "-n",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-r",
            "long": "--variable",
            "arg": "<name>",
            "description": "defines parameter to display. This option can be used multiple times."
        },
        {
            "flag": "-v",
            "long": "--values-only",
            "arg": null,
            "description": "print only values, not parameter names."
        }
    ],
    "examples": [
        "$ cgget -r cpuset.cpus -r cpuset.mems first second",
        "first:",
        "cpuset.cpus=0-1",
        "cpuset.mems=0",
        "second:",
        "cpuset.cpus=0",
        "cpuset.mems=0",
        "$ cgget -n -r cpuset.cpus -r cpuset.mems first second",
        "cpuset.cpus=0-1",
        "cpuset.mems=0",
        "cpuset.cpus=0",
        "cpuset.mems=0",
        "$ cgget -nv -r cpuset.cpus -r cpuset.mems first second",
        "0-1",
        "$ cgget -n -g cpu /",
        "cpu.rtperiodus=1000000",
        "cpu.rtruntimeus=950000",
        "cpu.shares=1024"
    ],
    "see_also": []
}