{
    "mode": "man",
    "parameter": "CGSET",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/CGSET/1/json",
    "generated": "2026-06-14T13:42:32Z",
    "synopsis": "cgset [-r <name=value>] <cgrouppath> ...\ncgset --copy-from <sourcecgrouppath> <cgrouppath> ...",
    "sections": {
        "NAME": {
            "content": "cgset - set the parameters of given cgroup(s)\n\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "cgset [-r <name=value>] <cgrouppath> ...\ncgset --copy-from <sourcecgrouppath> <cgrouppath> ...\n\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Set the parameters of input cgroups.\n\n\n<path> is  the name of the cgroup which should be changed.  This parameter can be used multi‐\nple times.\n\n",
            "subsections": [
                {
                    "name": "-r <name=value>",
                    "content": "defines the name of the file to set and the value which  should  be  written  to  that\nfile.  This parameter can be used multiple times.\n\n\n--copy-from <sourcecgrouppath>\ndefines the name of the cgroup whose parameters will be copied to the input cgroup.\n\n",
                    "flag": "-r",
                    "arg": "<name=value>"
                }
            ]
        },
        "ENVIRONMENT VARIABLES": {
            "content": "CGROUPLOGLEVEL\ncontrols verbosity of the tool. Allowed values are DEBUG, INFO, WARNING or ERROR.\n\n",
            "subsections": []
        },
        "EXAMPLES": {
            "content": "",
            "subsections": [
                {
                    "name": "cgset -r cpuset.cpus=0-1 student",
                    "content": "set variable cpus in control group student (controller cpuset) to 0-1\n\n"
                },
                {
                    "name": "cgset --copy-from group1/ group2/",
                    "content": "copy  all  parameters of group group1 to group group2 (for all path where both cgroups\nare defined)\n\n\n"
                }
            ]
        },
        "SEE ALSO": {
            "content": "cgrules.conf (1), cgcreate (1), cgget (1)\n\n\n\nLinux                                        2009-03-15                                     CGSET(1)",
            "subsections": []
        }
    },
    "summary": "cgset - set the parameters of given cgroup(s)",
    "flags": [
        {
            "flag": "-r",
            "long": null,
            "arg": "<name=value>",
            "description": "defines the name of the file to set and the value which should be written to that file. This parameter can be used multiple times. --copy-from <sourcecgrouppath> defines the name of the cgroup whose parameters will be copied to the input cgroup."
        }
    ],
    "examples": [
        "set variable cpus in control group student (controller cpuset) to 0-1",
        "copy  all  parameters of group group1 to group group2 (for all path where both cgroups",
        "are defined)"
    ],
    "see_also": []
}