source: chapter06/procps.xml@ 3e46693

6.0
Last change on this file since 3e46693 was 3ed279f, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

Tags changes in the contents sections to make a better print output.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/testing/BOOK@4009 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 6.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<sect1 id="ch-system-procps" xreflabel="Procps" role="wrap">
7<title>Procps-&procps-version;</title>
8<?dbhtml filename="procps.html"?>
9
10<indexterm zone="ch-system-procps"><primary sortas="a-Procps">Procps</primary></indexterm>
11
12<sect2 role="package"><title/>
13<para>The Procps package contains programs for monitoring processes.</para>
14
15<segmentedlist>
16<segtitle>&buildtime;</segtitle>
17<segtitle>&diskspace;</segtitle>
18<seglistitem><seg>0.1 SBU</seg><seg>6.2 MB</seg></seglistitem>
19</segmentedlist>
20
21<segmentedlist>
22<segtitle>Procps installation depends on</segtitle>
23<seglistitem><seg>Bash, Binutils, Coreutils, GCC, Glibc,
24Make, Ncurses</seg></seglistitem>
25</segmentedlist>
26</sect2>
27
28<sect2 role="installation">
29<title>Installation of Procps</title>
30
31<para>Compile Procps:</para>
32
33<screen><userinput>make</userinput></screen>
34
35<para>Install the packag:</para>
36
37<screen><userinput>make install</userinput></screen>
38
39<para>Remove a spurious library link:</para>
40
41<screen><userinput>rm /lib/libproc.so</userinput></screen>
42
43</sect2>
44
45
46<sect2 id="contents-procps" role="content"><title>Contents of Procps</title>
47
48<segmentedlist>
49<segtitle>Installed programs</segtitle>
50<segtitle>Installed library</segtitle>
51<seglistitem><seg>free, kill, pgrep, pkill,
52pmap, ps, skill, snice, sysctl, tload, top, uptime, vmstat, w and watch</seg>
53<seg>libproc.so</seg></seglistitem>
54</segmentedlist>
55
56<variablelist><bridgehead renderas="sect3">Short descriptions</bridgehead>
57<?dbfo list-presentation="list"?>
58
59<varlistentry id="free">
60<term><command>free</command></term>
61<listitem>
62<para>reports the amount of free and used memory (both physical and
63swap memory) in the system.</para>
64<indexterm zone="ch-system-procps free"><primary sortas="b-free">free</primary></indexterm>
65</listitem>
66</varlistentry>
67
68<varlistentry id="kill">
69<term><command>kill</command></term>
70<listitem>
71<para>sends signals to processes.</para>
72<indexterm zone="ch-system-procps kill"><primary sortas="b-kill">kill</primary></indexterm>
73</listitem>
74</varlistentry>
75
76<varlistentry id="pgrep">
77<term><command>pgrep</command></term>
78<listitem>
79<para>looks up processes based on their name and other attributes.</para>
80<indexterm zone="ch-system-procps pgrep"><primary sortas="b-pgrep">pgrep</primary></indexterm>
81</listitem>
82</varlistentry>
83
84<varlistentry id="pkill">
85<term><command>pkill</command></term>
86<listitem>
87<para>signals processes based on their name and other attributes.</para>
88<indexterm zone="ch-system-procps pkill"><primary sortas="b-pkill">pkill</primary></indexterm>
89</listitem>
90</varlistentry>
91
92<varlistentry id="pmap">
93<term><command>pmap</command></term>
94<listitem>
95<para>reports the memory map of the given process.</para>
96<indexterm zone="ch-system-procps pmap"><primary sortas="b-pmap">pmap</primary></indexterm>
97</listitem>
98</varlistentry>
99
100<varlistentry id="ps">
101<term><command>ps</command></term>
102<listitem>
103<para>lists the current running processes.</para>
104<indexterm zone="ch-system-procps ps"><primary sortas="b-ps">ps</primary></indexterm>
105</listitem>
106</varlistentry>
107
108<varlistentry id="skill">
109<term><command>skill</command></term>
110<listitem>
111<para>sends signals to processes matching the given criteria.</para>
112<indexterm zone="ch-system-procps skill"><primary sortas="b-skill">skill</primary></indexterm>
113</listitem>
114</varlistentry>
115
116<varlistentry id="snice">
117<term><command>snice</command></term>
118<listitem>
119<para>changes the scheduling priority of processes matching the given criteria.</para>
120<indexterm zone="ch-system-procps snice"><primary sortas="b-snice">snice</primary></indexterm>
121</listitem>
122</varlistentry>
123
124<varlistentry id="sysctl">
125<term><command>sysctl</command></term>
126<listitem>
127<para>modifies kernel parameters at run time.</para>
128<indexterm zone="ch-system-procps sysctl"><primary sortas="b-sysctl">sysctl</primary></indexterm>
129</listitem>
130</varlistentry>
131
132<varlistentry id="tload">
133<term><command>tload</command></term>
134<listitem>
135<para>prints a graph of the current system load average.</para>
136<indexterm zone="ch-system-procps tload"><primary sortas="b-tload">tload</primary></indexterm>
137</listitem>
138</varlistentry>
139
140<varlistentry id="top">
141<term><command>top</command></term>
142<listitem>
143<para>displays the top CPU processes. It provides an ongoing look at
144processor activity in real time.</para>
145<indexterm zone="ch-system-procps top"><primary sortas="b-top">top</primary></indexterm>
146</listitem>
147</varlistentry>
148
149<varlistentry id="uptime">
150<term><command>uptime</command></term>
151<listitem>
152<para>reports how long the system has been running, how many users are
153logged on, and the system load averages.</para>
154<indexterm zone="ch-system-procps uptime"><primary sortas="b-uptime">uptime</primary></indexterm>
155</listitem>
156</varlistentry>
157
158<varlistentry id="vmstat">
159<term><command>vmstat</command></term>
160<listitem>
161<para>reports virtual memory statistics, giving information about
162processes, memory, paging, block IO, traps, and CPU activity.</para>
163<indexterm zone="ch-system-procps vmstat"><primary sortas="b-vmstat">vmstat</primary></indexterm>
164</listitem>
165</varlistentry>
166
167<varlistentry id="w">
168<term><command>w</command></term>
169<listitem>
170<para>shows which users are currently logged on, where, and since when.</para>
171<indexterm zone="ch-system-procps w"><primary sortas="b-w">w</primary></indexterm>
172</listitem>
173</varlistentry>
174
175<varlistentry id="watch">
176<term><command>watch</command></term>
177<listitem>
178<para>runs a given command repeatedly, displaying the first screen-full of its
179output. This allows a user to watch the output change over time.</para>
180<indexterm zone="ch-system-procps watch"><primary sortas="b-watch">watch</primary></indexterm>
181</listitem>
182</varlistentry>
183
184<varlistentry id="libproc">
185<term><filename class="libraryfile">libproc</filename></term>
186<listitem>
187<para>contains the functions used by most programs in this package.</para>
188<indexterm zone="ch-system-procps libproc"><primary sortas="c-libproc">libproc</primary></indexterm>
189</listitem>
190</varlistentry>
191</variablelist>
192
193</sect2>
194
195</sect1>
196
Note: See TracBrowser for help on using the repository browser.