source: BOOK/final-system/common/procps-ng.xml@ 7e085fcb

clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 7e085fcb was b4bf2c5, checked in by Chris Staub <chris@…>, 11 years ago

Updates to installed program/directory info for several packages

  • Property mode set to 100644
File size: 8.7 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-procps-ng" role="wrap">
9 <?dbhtml filename="procps-ng.html"?>
10
11 <title>Procps-ng-&procps-ng-version;</title>
12
13 <indexterm zone="ch-system-procps-ng">
14 <primary sortas="a-Procps-ng">Procps-ng</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Procps-ng package contains programs for monitoring
21 processes.</para>
22
23 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of Procps-ng</title>
27
28 <para os="a">Prepare procps-ng for compilation:</para>
29
30<screen os="b"><userinput>./configure --prefix=/usr --exec-prefix= \
31 --libdir=/usr/lib --docdir=/usr/share/doc/procps-ng-&procps-ng-version; \
32 --disable-kill</userinput></screen>
33
34 <variablelist os="c">
35 <title>The meaning of the configure options:</title>
36 <varlistentry>
37 <term><parameter>--disable-kill</parameter></term>
38 <listitem>
39 <para>This switch disables building the kill command that
40 was installed in the util-linux package.</para>
41 </listitem>
42 </varlistentry>
43 </variablelist>
44
45 <para os="d">Compile the package:</para>
46
47<screen os="e"><userinput>make</userinput></screen>
48
49 <para os="f">Remove the test which fails when scripting does not use a tty
50 device. Run the following commands:</para>
51
52<screen os="g"><userinput remap="test">sed -i -r 's|(pmap_initname)\\\$|\1|' testsuite/pmap.test/pmap.exp
53make check</userinput></screen>
54
55 <para os="h">Install the package:</para>
56
57<screen os="i"><userinput>make install</userinput></screen>
58
59 <para os="j">Move essential files to a location that can be found if <filename class="directory">/usr</filename> is not mounted.</para>
60
61<screen os="k"><userinput>mv -v /usr/bin/pidof /bin
62mv -v /usr/lib/libprocps.so.* /lib
63ln -sfv ../../lib/$(readlink /usr/lib/libprocps.so) /usr/lib/libprocps.so</userinput></screen>
64
65 </sect2>
66
67 <sect2 id="contents-procps-ng" role="content">
68 <title>Contents of Procps-ng</title>
69
70 <segmentedlist>
71 <segtitle>Installed programs</segtitle>
72 <segtitle>Installed library</segtitle>
73 <segtitle>Installed directories</segtitle>
74
75 <seglistitem>
76 <seg>free, pgrep, pidof, pkill, pmap, ps, pwdx, slabtop, sysctl, tload,
77 top, uptime, vmstat, w, and watch</seg>
78 <seg>libprocps.{a,so}</seg>
79 <seg>/usr/include/proc, /usr/share/doc/procps-ng-&procps-ng-version;</seg>
80 </seglistitem>
81 </segmentedlist>
82
83 <variablelist>
84 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
85 <?dbfo list-presentation="list"?>
86 <?dbhtml list-presentation="table"?>
87
88 <varlistentry id="free">
89 <term><command>free</command></term>
90 <listitem>
91 <para>Reports the amount of free and used memory (both physical and
92 swap memory) in the system</para>
93 <indexterm zone="ch-system-procps-ng free">
94 <primary sortas="b-free">free</primary>
95 </indexterm>
96 </listitem>
97 </varlistentry>
98
99 <varlistentry id="pgrep">
100 <term><command>pgrep</command></term>
101 <listitem>
102 <para>Looks up processes based on their name and other attributes</para>
103 <indexterm zone="ch-system-procps-ng pgrep">
104 <primary sortas="b-pgrep">pgrep</primary>
105 </indexterm>
106 </listitem>
107 </varlistentry>
108
109 <varlistentry id="pidof">
110 <term><command>pidof</command></term>
111 <listitem>
112 <para>Looks up processes based on their name and other attributes</para>
113 <indexterm zone="ch-system-procps-ng pidof">
114 <primary sortas="b-pidof">pidof</primary>
115 </indexterm>
116 </listitem>
117 </varlistentry>
118
119 <varlistentry id="pkill">
120 <term><command>pkill</command></term>
121 <listitem>
122 <para>Signals processes based on their name and other attributes</para>
123 <indexterm zone="ch-system-procps-ng pkill">
124 <primary sortas="b-pkill">pkill</primary>
125 </indexterm>
126 </listitem>
127 </varlistentry>
128
129 <varlistentry id="pmap">
130 <term><command>pmap</command></term>
131 <listitem>
132 <para>Reports the memory map of the given process</para>
133 <indexterm zone="ch-system-procps-ng pmap">
134 <primary sortas="b-pmap">pmap</primary>
135 </indexterm>
136 </listitem>
137 </varlistentry>
138
139 <varlistentry id="ps">
140 <term><command>ps</command></term>
141 <listitem>
142 <para>Lists the current running processes</para>
143 <indexterm zone="ch-system-procps-ng ps">
144 <primary sortas="b-ps">ps</primary>
145 </indexterm>
146 </listitem>
147 </varlistentry>
148
149 <varlistentry id="pwdx">
150 <term><command>pwdx</command></term>
151 <listitem>
152 <para>Reports the current working directory of a process</para>
153 <indexterm zone="ch-system-procps-ng pwdx">
154 <primary sortas="b-pwdx">pwdx</primary>
155 </indexterm>
156 </listitem>
157 </varlistentry>
158
159 <varlistentry id="slabtop">
160 <term><command>slabtop</command></term>
161 <listitem>
162 <para>Displays detailed kernel slab cache information in real time</para>
163 <indexterm zone="ch-system-procps-ng slabtop">
164 <primary sortas="b-slabtop">slabtop</primary>
165 </indexterm>
166 </listitem>
167 </varlistentry>
168
169
170 <varlistentry id="sysctl">
171 <term><command>sysctl</command></term>
172 <listitem>
173 <para>Modifies kernel parameters at run time</para>
174 <indexterm zone="ch-system-procps-ng sysctl">
175 <primary sortas="b-sysctl">sysctl</primary>
176 </indexterm>
177 </listitem>
178 </varlistentry>
179
180 <varlistentry id="tload">
181 <term><command>tload</command></term>
182 <listitem>
183 <para>Prints a graph of the current system load average</para>
184 <indexterm zone="ch-system-procps-ng tload">
185 <primary sortas="b-tload">tload</primary>
186 </indexterm>
187 </listitem>
188 </varlistentry>
189
190 <varlistentry id="top">
191 <term><command>top</command></term>
192 <listitem>
193 <para>Displays a list of the most CPU intensive processes; it
194 provides an ongoing look at processor activity in real time</para>
195 <indexterm zone="ch-system-procps-ng top">
196 <primary sortas="b-top">top</primary>
197 </indexterm>
198 </listitem>
199 </varlistentry>
200
201 <varlistentry id="uptime">
202 <term><command>uptime</command></term>
203 <listitem>
204 <para>Reports how long the system has been running, how many users are
205 logged on, and the system load averages</para>
206 <indexterm zone="ch-system-procps-ng uptime">
207 <primary sortas="b-uptime">uptime</primary>
208 </indexterm>
209 </listitem>
210 </varlistentry>
211
212 <varlistentry id="vmstat">
213 <term><command>vmstat</command></term>
214 <listitem>
215 <para>Reports virtual memory statistics, giving information about
216 processes, memory, paging, block Input/Output (IO), traps, and CPU
217 activity</para>
218 <indexterm zone="ch-system-procps-ng vmstat">
219 <primary sortas="b-vmstat">vmstat</primary>
220 </indexterm>
221 </listitem>
222 </varlistentry>
223
224 <varlistentry id="w">
225 <term><command>w</command></term>
226 <listitem>
227 <para>Shows which users are currently logged on, where, and since
228 when</para>
229 <indexterm zone="ch-system-procps-ng w">
230 <primary sortas="b-w">w</primary>
231 </indexterm>
232 </listitem>
233 </varlistentry>
234
235 <varlistentry id="watch">
236 <term><command>watch</command></term>
237 <listitem>
238 <para>Runs a given command repeatedly, displaying the first
239 screen-full of its output; this allows a user to watch the output
240 change over time</para>
241 <indexterm zone="ch-system-procps-ng watch">
242 <primary sortas="b-watch">watch</primary>
243 </indexterm>
244 </listitem>
245 </varlistentry>
246
247 <varlistentry id="libprocps">
248 <term><filename class="libraryfile">libprocps</filename></term>
249 <listitem>
250 <para>Contains the functions used by most programs in this
251 package</para>
252 <indexterm zone="ch-system-procps-ng libprocps">
253 <primary sortas="c-libprocps">libprocps</primary>
254 </indexterm>
255 </listitem>
256 </varlistentry>
257
258 </variablelist>
259
260 </sect2>
261
262</sect1>
Note: See TracBrowser for help on using the repository browser.