LSCGROUP(1) libcgroup Manual LSCGROUP(1)

# [NAME](#NAME)

lscgroup - list all cgroups

# [SYNOPSIS](#SYNOPSIS)

**lscgroup** \[\[**-g**] &lt;*controllers&gt;:&lt;path*&gt;] \[...]  
**lscgroup** \[**-h|--help**]

# [DESCRIPTION](#DESCRIPTION)

List all/chosen cgroups.

**&lt;controllers&gt;:&lt;path&gt;**

defines the control groups whose subgroups will be shown. If this parameter is not used, the command will list all existing cgroups.

# [ENVIRONMENT VARIABLES](#ENVIRONMENT_VARIABLES)

[**CGROUP\_LOGLEVEL**](#CGROUP_LOGLEVEL)

controls verbosity of the tool. Allowed values are **DEBUG**, **INFO**, **WARNING** or **ERROR**.

# [EXAMPLES](#EXAMPLES)

**lscgroup -g cpu:/**

list all cgroups which are in hierarchy containing cpu controller

**lscgroup -g cpu:/student**

list all cgroups which are in hierarchy containing cpu controller in subgroup student

[**lscgroup**](#lscgroup)

list all cgroups which in all hierarchies

# [NOTES](#NOTES)

lscgroup is currently supported on cgroups v1 only.

# [SEE ALSO](#SEE_ALSO)

[lssubsys (1)](/man/enterprise-packages/libcgroup/lssubsys.1), [cgcreate (1)](/man/enterprise-packages/libcgroup/cgcreate.1), [cgdelete (1)](/man/enterprise-packages/libcgroup/cgdelete.1), [cgconfig.conf (5)](/man/enterprise-packages/libcgroup/cgconfig.conf.5)

2009-11-05 Linux

---

Document: lscgroup(1) from libcgroup 3.2.0-r10 (Chainguard OS)
Source: https://github.com/libcgroup/libcgroup
