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 This file is part of systemd.
8 Copyright 2010 Lennart Poettering
10 systemd is free software; you can redistribute it and/or modify it
11 under the terms of the GNU Lesser General Public License as published by
12 the Free Software Foundation; either version 2.1 of the License, or
13 (at your option) any later version.
15 systemd is distributed in the hope that it will be useful, but
16 WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Lesser General Public License for more details.
20 You should have received a copy of the GNU Lesser General Public License
21 along with systemd; If not, see <http://www.gnu.org/licenses/>.
24 <refentry id="systemd-cgls">
27 <title>systemd-cgls</title>
28 <productname>systemd</productname>
32 <contrib>Developer</contrib>
33 <firstname>Lennart</firstname>
34 <surname>Poettering</surname>
35 <email>lennart@poettering.net</email>
41 <refentrytitle>systemd-cgls</refentrytitle>
42 <manvolnum>1</manvolnum>
46 <refname>systemd-cgls</refname>
47 <refpurpose>Recursively show control group contents</refpurpose>
52 <command>systemd-cgls</command>
53 <arg choice="opt" rep="repeat">OPTIONS</arg>
54 <arg choice="opt" rep="repeat">CGROUP</arg>
59 <title>Description</title>
61 <para><command>systemd-cgls</command> recursively
62 shows the contents of the selected Linux control group
63 hierarchy in a tree. If arguments are specified, shows
64 all member processes of the specified control groups
65 plus all their subgroups and their members. The
66 control groups may either be specified by their full
67 file paths or are assumed in the systemd control group
68 hierarchy. If no argument is specified and the current
69 working directory is beneath the control group mount
70 point <filename>/sys/fs/cgroup</filename>, shows the contents
71 of the control group the working directory refers
72 to. Otherwise, the full systemd control group hierarchy
75 <para>By default, empty control groups are not
80 <title>Options</title>
82 <para>The following options are understood:</para>
86 <term><option>-h</option></term>
87 <term><option>--help</option></term>
89 <listitem><para>Prints a short help
90 text and exits.</para></listitem>
94 <term><option>--version</option></term>
96 <listitem><para>Prints a short version
97 string and exits.</para></listitem>
101 <term><option>--no-pager</option></term>
103 <listitem><para>Do not pipe output into a
104 pager.</para></listitem>
108 <term><option>--all</option></term>
110 <listitem><para>Do not hide empty
111 control groups in the
112 output.</para></listitem>
116 <term><option>-l</option></term>
117 <term><option>--full</option></term>
119 <listitem><para>Do not ellipsize
120 process tree members.</para>
125 <term><option>-k</option></term>
127 <listitem><para>Include kernel
128 threads in output.</para></listitem>
132 <term><option>-M <replaceable>MACHINE</replaceable></option></term>
133 <term><option>--machine=<replaceable>MACHINE</replaceable></option></term>
135 <listitem><para>Limit control groups shown to
136 the part corresponding to the
137 container <replaceable>MACHINE</replaceable>.
146 <title>Exit status</title>
148 <para>On success, 0 is returned, a non-zero failure
149 code otherwise.</para>
153 <title>See Also</title>
155 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
156 <citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
157 <citerefentry><refentrytitle>systemd-cgtop</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
158 <citerefentry><refentrytitle>systemd-nspawn</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
159 <citerefentry><refentrytitle>ps</refentrytitle><manvolnum>1</manvolnum></citerefentry>