1 <?xml version='
1.0'
?> <!--*-nxml-*-->
2 <!DOCTYPE refentry PUBLIC
"-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
6 SPDX-License-Identifier: LGPL-2.1+
8 Copyright 2010 Lennart Poettering
11 <refentry id=
"systemd-cgls"
12 xmlns:
xi=
"http://www.w3.org/2001/XInclude">
15 <title>systemd-cgls
</title>
16 <productname>systemd
</productname>
20 <contrib>Developer
</contrib>
21 <firstname>Lennart
</firstname>
22 <surname>Poettering
</surname>
23 <email>lennart@poettering.net
</email>
29 <refentrytitle>systemd-cgls
</refentrytitle>
30 <manvolnum>1</manvolnum>
34 <refname>systemd-cgls
</refname>
35 <refpurpose>Recursively show control group contents
</refpurpose>
40 <command>systemd-cgls
</command>
41 <arg choice=
"opt" rep=
"repeat">OPTIONS
</arg>
42 <arg choice=
"opt" rep=
"repeat">CGROUP
</arg>
45 <command>systemd-cgls
</command>
46 <arg choice=
"opt" rep=
"repeat">OPTIONS
</arg>
47 <arg choice=
"plain"><option>--unit
</option>|
<option>--user-unit
</option></arg>
48 <arg choice=
"opt" rep=
"repeat">UNIT
</arg>
53 <title>Description
</title>
55 <para><command>systemd-cgls
</command> recursively shows the
56 contents of the selected Linux control group hierarchy in a tree.
57 If arguments are specified, shows all member processes of the
58 specified control groups plus all their subgroups and their
59 members. The control groups may either be specified by their full
60 file paths or are assumed in the systemd control group hierarchy.
61 If no argument is specified and the current working directory is
62 beneath the control group mount point
63 <filename>/sys/fs/cgroup
</filename>, shows the contents of the
64 control group the working directory refers to. Otherwise, the full
65 systemd control group hierarchy is shown.
</para>
67 <para>By default, empty control groups are not shown.
</para>
71 <title>Options
</title>
73 <para>The following options are understood:
</para>
77 <term><option>--all
</option></term>
79 <listitem><para>Do not hide empty control groups in the
80 output.
</para></listitem>
84 <term><option>-l
</option></term>
85 <term><option>--full
</option></term>
87 <listitem><para>Do not ellipsize process tree members.
</para>
92 <term><option>-u
</option></term>
93 <term><option>--unit
</option></term>
95 <listitem><para>Show cgroup subtrees for the specified units.
</para>
100 <term><option>--user-unit
</option></term>
102 <listitem><para>Show cgroup subtrees for the specified user units.
</para>
107 <term><option>-k
</option></term>
109 <listitem><para>Include kernel threads in output.
114 <term><option>-M
<replaceable>MACHINE
</replaceable></option></term>
115 <term><option>--machine=
<replaceable>MACHINE
</replaceable></option></term>
117 <listitem><para>Limit control groups shown to the part
118 corresponding to the container
119 <replaceable>MACHINE
</replaceable>.
</para></listitem>
122 <xi:include href=
"standard-options.xml" xpointer=
"help" />
123 <xi:include href=
"standard-options.xml" xpointer=
"version" />
124 <xi:include href=
"standard-options.xml" xpointer=
"no-pager" />
130 <title>Exit status
</title>
132 <para>On success,
0 is returned, a non-zero failure code
137 <title>See Also
</title>
139 <citerefentry><refentrytitle>systemd
</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
140 <citerefentry><refentrytitle>systemctl
</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
141 <citerefentry><refentrytitle>systemd-cgtop
</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
142 <citerefentry><refentrytitle>systemd-nspawn
</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
143 <citerefentry project='man-pages'
><refentrytitle>ps
</refentrytitle><manvolnum>1</manvolnum></citerefentry>