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

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • 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. Understanding the /proc/mounts, /etc/mtab and /proc/partitions files
  2. CentOS / RHEL : How to restrict SSH login by time of day
  3. add-apt-repository: command not found
  4. CentOS / RHEL 7 : How to modify Network Interface names
  5. How to Configure Remote Rsyslog To Accept TLS and Non-TLS in CentOS/RHEL
  6. numlockx: command not found
  7. /dev/shm permission change after node reboot
  8. How to Remove/Delete All Packages from Channel(s) in SpaceWalk
  9. Sample /etc/services file in Linux
  10. logger Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright