OS Manuals

systemd-cgls(1)

SYSTEMD-CGLS(1) systemd-cgls SYSTEMD-CGLS(1)


.SH "NAME" systemd-cgls - Recursively show control group contents


.SH "SYNOPSIS"


.HP 312u


systemd-cgls
[OPTIONS...]
[CGROUP...]


.HP 312u


systemd-cgls
[OPTIONS...]
--unit|--user-unit
UNIT...


.SH "DESCRIPTION"


.PP systemd-cgls recursively shows the contents of the selected Linux control group hierarchy in a tree. If arguments are specified, shows all member processes of the specified control groups plus all their subgroups and their members. The control groups may either be specified by their full file paths or are assumed in the systemd control group hierarchy. If no argument is specified and the current working directory is beneath the control group mount point /sys/fs/cgroup/, shows the contents of the control group the working directory refers to. Otherwise, the full systemd control group hierarchy is shown.


.PP By default, empty control groups are not shown.


.SH "OPTIONS"


.PP The following options are understood:


.PP --all


Do not hide empty control groups in the output.


.RE


.PP -l, --full


Do not ellipsize process tree members.


Added in version 198.


.RE


.PP -u, --unit


Show cgroup subtrees for the specified units.


Added in version 233.


.RE


.PP --user-unit


Show cgroup subtrees for the specified user units.


Added in version 233.


.RE


.PP -k


Include kernel threads in output.


.RE


.PP -M MACHINE, --machine=MACHINE


Limit control groups shown to the part corresponding to the container MACHINE.


Added in version 203.


.RE


.PP --xattr[=BOOL], -x


Controls whether to include information about extended attributes of the listed control groups in the output. With the long option only, optionally accepts a boolean value. Defaults to no.


Added in version 250.


.RE


.PP --cgroup-id[=BOOL], -c


Controls whether to include the numeric ID of the listed control groups in the output. With the long option only, optionally accepts a boolean value. Defaults to no.


Added in version 250.


.RE


.PP -h, --help


Print a short help text and exit.


.RE
.PP --version


Print a short version string and exit.


.RE
.PP --no-pager


Do not pipe output into a pager.


.RE


.SH "EXIT STATUS"


.PP On success, 0 is returned, a non-zero failure code otherwise.


.SH "SEE ALSO"


.PP systemd(1), systemctl(1), systemd-cgtop(1), systemd-nspawn(1), ps(1)

systemd 262.2

systemd 262.2-r1 · os · ingested 2026-11-06