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 <arg choice="opt" rep="repeat">OPTIONS</arg> <arg choice="opt" rep="repeat">CGROUP</arg></command>
57 <title>Description</title>
59 <para><command>systemd-cgls</command> recursively
60 shows the contents of the selected Linux control group
61 hierarchy in a tree. If arguments are specified shows
62 all member processes of the specified control groups
63 plus all their subgroups and their members. The
64 control groups may either be specified by their full
65 file paths or are assumed in the systemd control group
66 hierarchy. If no argument is specified and the current
67 working directory is beneath the control group mount
68 point <filename>/sys/fs/cgroup</filename> shows the contents
69 of the control group the working directory refers
70 to. Otherwise the full systemd control group hierarchy
73 <para>By default empty control groups are not
78 <title>Options</title>
80 <para>The following options are understood:</para>
84 <term><option>-h</option></term>
85 <term><option>--help</option></term>
87 <listitem><para>Prints a short help
88 text and exits.</para></listitem>
92 <term><option>--version</option></term>
94 <listitem><para>Prints a short version
95 string and exits.</para></listitem>
99 <term><option>--no-pager</option></term>
101 <listitem><para>Do not pipe output into a
102 pager.</para></listitem>
106 <term><option>--all</option></term>
108 <listitem><para>Don't hide empty
109 control groups in the
110 output.</para></listitem>
114 <term><option>--full</option></term>
116 <listitem><para>Do not ellipsize cgroup
122 <term><option>-k</option></term>
124 <listitem><para>Include kernel
125 threads in output.</para></listitem>
133 <title>Exit status</title>
135 <para>On success 0 is returned, a non-zero failure
136 code otherwise.</para>
140 <title>See Also</title>
142 <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
143 <citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
144 <citerefentry><refentrytitle>systemd-cgtop</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
145 <citerefentry><refentrytitle>ps</refentrytitle><manvolnum>1</manvolnum></citerefentry>