• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

cgcreate: command not found

by admin

cgcreate is a command-line utility in Linux that is used to create and manage control groups (cgroups). Cgroups are a Linux kernel feature that allows you to limit, prioritize, and isolate the resource usage of processes and applications on the system.

If you encounter the below error while running the cgcreate command:

cgcreate: command not found

you may try installing the below package as per your choice of distribution:

Distribution Command
Debian apt-get install cgroup-tools
Ubuntu apt-get install cgroup-tools
Kali Linux apt-get install cgroup-tools
CentOS yum install libcgroup
Fedora dnf install libcgroup-tools
Raspbian apt-get install cgroup-tools

Once you have created a cgroup using cgcreate, you can use other cgroup utilities, such as cgset and cgclassify, to configure and manage the cgroup.

For more information on using cgcreate and the other cgroup utilities, you can consult the cgroup documentation or use the cgcreate –help command to view a list of available options and usage examples.

cgcreate Command Examples

1. Create a new group:

# cgcreate -g group_type:group_name

2. Create a new group with multiple cgroup types:

# cgcreate -g group_type1,group_type2:group_name

3. Create a subgroup:

# mkdir /sys/fs/cgroup/group_type/group_name/subgroup_name

Filed Under: Linux

Some more articles you might also be interested in …

  1. dvc diff: Show changes in DVC tracked file and directories
  2. yum-config-manager: command not found
  3. st Command Examples in Linux
  4. CentOS / RHEL 5 : dm-multipath file /etc/sysconfig/mkinitrd/multipath explained
  5. fusermount: Mount and unmount FUSE filesystems
  6. netplan: command not found
  7. kpackagetool5: command not found
  8. gatsby: Static site generator for React
  9. “az storage” Command Examples
  10. doctl compute droplet: List, create, and delete virtual machines which are called droplets

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright