]> git.ipfire.org Git - thirdparty/systemd.git/blame - man/systemd-cgls.xml
tree-wide: drop 'This file is part of systemd' blurb
[thirdparty/systemd.git] / man / systemd-cgls.xml
CommitLineData
fa776d8e
LP
1<?xml version='1.0'?> <!--*-nxml-*-->
2<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
12b42c76 3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
fa776d8e
LP
4
5<!--
572eb058
ZJS
6 SPDX-License-Identifier: LGPL-2.1+
7
fa776d8e 8 Copyright 2010 Lennart Poettering
fa776d8e
LP
9-->
10
dfdebb1b 11<refentry id="systemd-cgls"
798d3a52
ZJS
12 xmlns:xi="http://www.w3.org/2001/XInclude">
13
14 <refentryinfo>
15 <title>systemd-cgls</title>
16 <productname>systemd</productname>
17
18 <authorgroup>
19 <author>
20 <contrib>Developer</contrib>
21 <firstname>Lennart</firstname>
22 <surname>Poettering</surname>
23 <email>lennart@poettering.net</email>
24 </author>
25 </authorgroup>
26 </refentryinfo>
27
28 <refmeta>
29 <refentrytitle>systemd-cgls</refentrytitle>
30 <manvolnum>1</manvolnum>
31 </refmeta>
32
33 <refnamediv>
34 <refname>systemd-cgls</refname>
35 <refpurpose>Recursively show control group contents</refpurpose>
36 </refnamediv>
37
38 <refsynopsisdiv>
39 <cmdsynopsis>
40 <command>systemd-cgls</command>
41 <arg choice="opt" rep="repeat">OPTIONS</arg>
42 <arg choice="opt" rep="repeat">CGROUP</arg>
43 </cmdsynopsis>
d9855d87
ZJS
44 <cmdsynopsis>
45 <command>systemd-cgls</command>
46 <arg choice="opt" rep="repeat">OPTIONS</arg>
e7aa3f50 47 <arg choice="plain"><option>--unit</option>|<option>--user-unit</option></arg>
d9855d87
ZJS
48 <arg choice="opt" rep="repeat">UNIT</arg>
49 </cmdsynopsis>
798d3a52
ZJS
50 </refsynopsisdiv>
51
52 <refsect1>
53 <title>Description</title>
54
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>
66
67 <para>By default, empty control groups are not shown.</para>
68 </refsect1>
69
70 <refsect1>
71 <title>Options</title>
72
73 <para>The following options are understood:</para>
74
75 <variablelist>
76 <varlistentry>
77 <term><option>--all</option></term>
78
79 <listitem><para>Do not hide empty control groups in the
80 output.</para></listitem>
81 </varlistentry>
82
83 <varlistentry>
84 <term><option>-l</option></term>
85 <term><option>--full</option></term>
86
87 <listitem><para>Do not ellipsize process tree members.</para>
88 </listitem>
89 </varlistentry>
90
d9855d87
ZJS
91 <varlistentry>
92 <term><option>-u</option></term>
93 <term><option>--unit</option></term>
94
95 <listitem><para>Show cgroup subtrees for the specified units.</para>
96 </listitem>
97 </varlistentry>
98
e7aa3f50
ZJS
99 <varlistentry>
100 <term><option>--user-unit</option></term>
101
102 <listitem><para>Show cgroup subtrees for the specified user units.</para>
103 </listitem>
104 </varlistentry>
105
798d3a52
ZJS
106 <varlistentry>
107 <term><option>-k</option></term>
108
109 <listitem><para>Include kernel threads in output.
110 </para></listitem>
111 </varlistentry>
112
113 <varlistentry>
114 <term><option>-M <replaceable>MACHINE</replaceable></option></term>
115 <term><option>--machine=<replaceable>MACHINE</replaceable></option></term>
116
117 <listitem><para>Limit control groups shown to the part
118 corresponding to the container
119 <replaceable>MACHINE</replaceable>.</para></listitem>
120 </varlistentry>
121
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" />
125 </variablelist>
126
127 </refsect1>
128
129 <refsect1>
130 <title>Exit status</title>
131
132 <para>On success, 0 is returned, a non-zero failure code
133 otherwise.</para>
134 </refsect1>
135
136 <refsect1>
137 <title>See Also</title>
138 <para>
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>
144 </para>
145 </refsect1>
fa776d8e
LP
146
147</refentry>