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-psmisc" role="wrap">
|
---|
9 | <?dbhtml filename="psmisc.html"?>
|
---|
10 |
|
---|
11 | <sect1info condition="script">
|
---|
12 | <productname>psmisc</productname>
|
---|
13 | <productnumber>&psmisc-version;</productnumber>
|
---|
14 | <address>&psmisc-url;</address>
|
---|
15 | </sect1info>
|
---|
16 |
|
---|
17 | <title>Psmisc-&psmisc-version;</title>
|
---|
18 |
|
---|
19 | <indexterm zone="ch-system-psmisc">
|
---|
20 | <primary sortas="a-Psmisc">Psmisc</primary>
|
---|
21 | </indexterm>
|
---|
22 |
|
---|
23 | <sect2 role="package">
|
---|
24 | <title/>
|
---|
25 |
|
---|
26 | <para>The Psmisc package contains programs for displaying information about
|
---|
27 | running processes.</para>
|
---|
28 |
|
---|
29 | <segmentedlist>
|
---|
30 | <segtitle>&buildtime;</segtitle>
|
---|
31 | <segtitle>&diskspace;</segtitle>
|
---|
32 |
|
---|
33 | <seglistitem>
|
---|
34 | <seg>&psmisc-ch6-sbu;</seg>
|
---|
35 | <seg>&psmisc-ch6-du;</seg>
|
---|
36 | </seglistitem>
|
---|
37 | </segmentedlist>
|
---|
38 |
|
---|
39 | </sect2>
|
---|
40 |
|
---|
41 | <sect2 role="installation">
|
---|
42 | <title>Installation of Psmisc</title>
|
---|
43 |
|
---|
44 | <para>Prepare Psmisc for compilation:</para>
|
---|
45 |
|
---|
46 | <screen><userinput remap="configure">./configure --prefix=/usr --exec-prefix=""</userinput></screen>
|
---|
47 |
|
---|
48 | <variablelist>
|
---|
49 | <title>The meaning of the configure options:</title>
|
---|
50 |
|
---|
51 | <varlistentry>
|
---|
52 | <term><parameter>--exec-prefix=""</parameter></term>
|
---|
53 | <listitem>
|
---|
54 | <para>This ensures that the Psmisc binaries will install into
|
---|
55 | <filename class="directory">/bin</filename> instead of <filename
|
---|
56 | class="directory">/usr/bin</filename>. This is the correct location
|
---|
57 | according to the FHS, because some of the Psmisc binaries are used
|
---|
58 | by the LFS-Bootscripts package.</para>
|
---|
59 | </listitem>
|
---|
60 | </varlistentry>
|
---|
61 |
|
---|
62 | </variablelist>
|
---|
63 |
|
---|
64 | <para>Compile the package:</para>
|
---|
65 |
|
---|
66 | <screen><userinput remap="make">make</userinput></screen>
|
---|
67 |
|
---|
68 | <para>This package does not come with a test suite.</para>
|
---|
69 |
|
---|
70 | <para>Install the package:</para>
|
---|
71 |
|
---|
72 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
73 |
|
---|
74 | <para>There is no reason for the <command>pstree</command> and
|
---|
75 | <command>pstree.x11</command> programs to reside in <filename
|
---|
76 | class="directory">/bin</filename>. Therefore, move them to <filename
|
---|
77 | class="directory">/usr/bin</filename>:</para>
|
---|
78 |
|
---|
79 | <screen><userinput remap="install">mv -v /bin/pstree* /usr/bin</userinput></screen>
|
---|
80 |
|
---|
81 | <para>By default, Psmisc's <command>pidof</command> program is not
|
---|
82 | installed. This usually is not a problem because it is installed later
|
---|
83 | in the Sysvinit package, which provides a better
|
---|
84 | <command>pidof</command> program. If Sysvinit will not be used for a
|
---|
85 | particular system, complete the installation of Psmisc by creating the
|
---|
86 | following symlink:</para>
|
---|
87 |
|
---|
88 | <screen><userinput remap="install">ln -sv killall /bin/pidof</userinput></screen>
|
---|
89 |
|
---|
90 | </sect2>
|
---|
91 |
|
---|
92 | <sect2 id="contents-psmisc" role="content">
|
---|
93 | <title>Contents of Psmisc</title>
|
---|
94 |
|
---|
95 | <segmentedlist>
|
---|
96 | <segtitle>Installed programs</segtitle>
|
---|
97 |
|
---|
98 | <seglistitem>
|
---|
99 | <seg>fuser, killall, oldfuser, peekfd, pstree, and pstree.x11
|
---|
100 | (link to pstree)</seg>
|
---|
101 | </seglistitem>
|
---|
102 | </segmentedlist>
|
---|
103 |
|
---|
104 | <variablelist>
|
---|
105 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
106 | <?dbfo list-presentation="list"?>
|
---|
107 | <?dbhtml list-presentation="table"?>
|
---|
108 |
|
---|
109 | <varlistentry id="fuser">
|
---|
110 | <term><command>fuser</command></term>
|
---|
111 | <listitem>
|
---|
112 | <para>Reports the Process IDs (PIDs) of processes that use the given
|
---|
113 | files or file systems</para>
|
---|
114 | <indexterm zone="ch-system-psmisc fuser">
|
---|
115 | <primary sortas="b-fuser">fuser</primary>
|
---|
116 | </indexterm>
|
---|
117 | </listitem>
|
---|
118 | </varlistentry>
|
---|
119 |
|
---|
120 | <varlistentry id="killall">
|
---|
121 | <term><command>killall</command></term>
|
---|
122 | <listitem>
|
---|
123 | <para>Kills processes by name; it sends a signal to all processes
|
---|
124 | running any of the given commands</para>
|
---|
125 | <indexterm zone="ch-system-psmisc killall">
|
---|
126 | <primary sortas="b-killall">killall</primary>
|
---|
127 | </indexterm>
|
---|
128 | </listitem>
|
---|
129 | </varlistentry>
|
---|
130 |
|
---|
131 | <varlistentry id="oldfuser">
|
---|
132 | <term><command>oldfuser</command></term>
|
---|
133 | <listitem>
|
---|
134 | <para>Reports the Process IDs (PIDs) of processes that use the given
|
---|
135 | files or file systems</para>
|
---|
136 | <indexterm zone="ch-system-psmisc oldfuser">
|
---|
137 | <primary sortas="b-oldfuser">oldfuser</primary>
|
---|
138 | </indexterm>
|
---|
139 | </listitem>
|
---|
140 | </varlistentry>
|
---|
141 |
|
---|
142 | <varlistentry id="peekfd">
|
---|
143 | <term><command>peekfd</command></term>
|
---|
144 | <listitem>
|
---|
145 | <para>Peek at file descriptors of a running process, given its
|
---|
146 | PID</para>
|
---|
147 | <indexterm zone="ch-system-psmisc peekfd">
|
---|
148 | <primary sortas="b-peekfd">peekfd</primary>
|
---|
149 | </indexterm>
|
---|
150 | </listitem>
|
---|
151 | </varlistentry>
|
---|
152 |
|
---|
153 | <varlistentry id="pstree">
|
---|
154 | <term><command>pstree</command></term>
|
---|
155 | <listitem>
|
---|
156 | <para>Displays running processes as a tree</para>
|
---|
157 | <indexterm zone="ch-system-psmisc pstree">
|
---|
158 | <primary sortas="b-pstree">pstree</primary>
|
---|
159 | </indexterm>
|
---|
160 | </listitem>
|
---|
161 | </varlistentry>
|
---|
162 |
|
---|
163 | <varlistentry id="pstree.x11">
|
---|
164 | <term><command>pstree.x11</command></term>
|
---|
165 | <listitem>
|
---|
166 | <para>Same as <command>pstree</command>, except that it waits for
|
---|
167 | confirmation before exiting</para>
|
---|
168 | <indexterm zone="ch-system-psmisc pstree.x11">
|
---|
169 | <primary sortas="b-pstree.x11">pstree.x11</primary>
|
---|
170 | </indexterm>
|
---|
171 | </listitem>
|
---|
172 | </varlistentry>
|
---|
173 |
|
---|
174 | </variablelist>
|
---|
175 |
|
---|
176 | </sect2>
|
---|
177 |
|
---|
178 | </sect1>
|
---|