* Fixed problem when BASEDIR paths were given without a trailing '/'.
[linux_from_scratch.git] / newxml / chapter06 / procps.xml
blob8ab64a1e42e419b3a8d8675682451269d95c8f9e
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">
7 <title>Procps-&procps-version;</title>
8 <?dbhtml filename="procps.html"?>
10 <indexterm zone="ch-system-procps"><primary sortas="a-Procps">Procps</primary></indexterm>
12 <para>The Procps package contains programs for monitoring processes.</para>
14 <screen>&buildtime; 0.1 SBU
15 &diskspace; 6.2 MB</screen>
17 <para>Procps installation depends on: Bash, Binutils, Coreutils, GCC, Glibc,
18 Make, Ncurses.</para>
22 <sect2>
23 <title>Installation of Procps</title>
25 <para>Compile Procps:</para>
27 <screen><userinput>make</userinput></screen>
29 <para>Install it:</para>
31 <screen><userinput>make install</userinput></screen>
33 <para>Remove a spurious library link:</para>
35 <screen><userinput>rm /lib/libproc.so</userinput></screen>
37 </sect2>
40 <sect2 id="contents-procps"><title>Contents of Procps</title>
42 <para><emphasis>Installed programs</emphasis>: free, kill, pgrep, pkill,
43 pmap, ps, skill, snice, sysctl, tload, top, uptime, vmstat, w and watch</para>
45 <para><emphasis>Installed library</emphasis>: libproc.so</para>
47 </sect2>
50 <sect2><title>Short descriptions</title>
52 <indexterm zone="ch-system-procps free"><primary sortas="b-free">free</primary></indexterm>
53 <para id="free"><command>free</command> reports the amount of free and used memory
54 in the system, both physical and swap memory.</para>
56 <indexterm zone="ch-system-procps kill"><primary sortas="b-kill">kill</primary></indexterm>
57 <para id="kill"><command>kill</command> is used to send signals to processes.</para>
59 <indexterm zone="ch-system-procps pgrep"><primary sortas="b-pgrep">pgrep</primary></indexterm>
60 <para id="pgrep"><command>pgrep</command> looks up processes based on their name
61 and other attributes.</para>
63 <indexterm zone="ch-system-procps pkill"><primary sortas="b-pkill">pkill</primary></indexterm>
64 <para id="pkill"><command>pkill</command> signals processes based on their name
65 and other attributes.</para>
67 <indexterm zone="ch-system-procps pmap"><primary sortas="b-pmap">pmap</primary></indexterm>
68 <para id="pmap"><command>pmap</command> reports the memory map of the given
69 process.</para>
71 <indexterm zone="ch-system-procps ps"><primary sortas="b-ps">ps</primary></indexterm>
72 <para id="ps"><command>ps</command> gives a snapshot of the current processes.</para>
74 <indexterm zone="ch-system-procps skill"><primary sortas="b-skill">skill</primary></indexterm>
75 <para id="skill"><command>skill</command> sends signals to processes matching the
76 given criteria.</para>
78 <indexterm zone="ch-system-procps snice"><primary sortas="b-snice">snice</primary></indexterm>
79 <para id="snice"><command>snice</command> changes the scheduling priority of processes
80 matching the given criteria.</para>
82 <indexterm zone="ch-system-procps sysctl"><primary sortas="b-sysctl">sysctl</primary></indexterm>
83 <para id="sysctl"><command>sysctl</command> modifies kernel parameters at run time.</para>
85 <indexterm zone="ch-system-procps tload"><primary sortas="b-tload">tload</primary></indexterm>
86 <para id="tload"><command>tload</command> prints a graph of the current system load
87 average.</para>
89 <indexterm zone="ch-system-procps top"><primary sortas="b-top">top</primary></indexterm>
90 <para id="top"><command>top</command> displays the top CPU processes. It provides
91 an ongoing look at processor activity in real time.</para>
93 <indexterm zone="ch-system-procps uptime"><primary sortas="b-uptime">uptime</primary></indexterm>
94 <para id="uptime"><command>uptime</command> reports how long the system has been
95 running, how many users are logged on, and the system load averages.</para>
97 <indexterm zone="ch-system-procps vmstat"><primary sortas="b-vmstat">vmstat</primary></indexterm>
98 <para id="vmstat"><command>vmstat</command> reports virtual memory statistics, giving
99 information about processes, memory, paging, block IO, traps, and CPU
100 activity.</para>
102 <indexterm zone="ch-system-procps w"><primary sortas="b-w">w</primary></indexterm>
103 <para id="w"><command>w</command> shows which users are currently logged on,
104 where and since when.</para>
106 <indexterm zone="ch-system-procps watch"><primary sortas="b-watch">watch</primary></indexterm>
107 <para id="watch"><command>watch</command> runs a given command repeatedly,
108 displaying the first screen-full of its output. This allows you to watch the
109 output change over time.</para>
111 <indexterm zone="ch-system-procps libproc"><primary sortas="c-libproc">libproc</primary></indexterm>
112 <para id="libproc"><command>libproc</command> contains the functions used by most
113 programs in this package.</para>
115 </sect2>
119 </sect1>