source: chapter06/psmisc.xml@ 6033f00

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 6033f00 was 8f85d251, checked in by Matthew Burgess <matthew@…>, 15 years ago

Remove mention of convert-mans and oldfuser in Man-DB's and psmisc's installed file lists respectively. Fixes #2455.

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

  • Property mode set to 100644
File size: 5.2 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-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, peekfd, pstree, and pstree.x11 (link to pstree)</seg>
100 </seglistitem>
101 </segmentedlist>
102
103 <variablelist>
104 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
105 <?dbfo list-presentation="list"?>
106 <?dbhtml list-presentation="table"?>
107
108 <varlistentry id="fuser">
109 <term><command>fuser</command></term>
110 <listitem>
111 <para>Reports the Process IDs (PIDs) of processes that use the given
112 files or file systems</para>
113 <indexterm zone="ch-system-psmisc fuser">
114 <primary sortas="b-fuser">fuser</primary>
115 </indexterm>
116 </listitem>
117 </varlistentry>
118
119 <varlistentry id="killall">
120 <term><command>killall</command></term>
121 <listitem>
122 <para>Kills processes by name; it sends a signal to all processes
123 running any of the given commands</para>
124 <indexterm zone="ch-system-psmisc killall">
125 <primary sortas="b-killall">killall</primary>
126 </indexterm>
127 </listitem>
128 </varlistentry>
129
130 <varlistentry id="peekfd">
131 <term><command>peekfd</command></term>
132 <listitem>
133 <para>Peek at file descriptors of a running process, given its
134 PID</para>
135 <indexterm zone="ch-system-psmisc peekfd">
136 <primary sortas="b-peekfd">peekfd</primary>
137 </indexterm>
138 </listitem>
139 </varlistentry>
140
141 <varlistentry id="pstree">
142 <term><command>pstree</command></term>
143 <listitem>
144 <para>Displays running processes as a tree</para>
145 <indexterm zone="ch-system-psmisc pstree">
146 <primary sortas="b-pstree">pstree</primary>
147 </indexterm>
148 </listitem>
149 </varlistentry>
150
151 <varlistentry id="pstree.x11">
152 <term><command>pstree.x11</command></term>
153 <listitem>
154 <para>Same as <command>pstree</command>, except that it waits for
155 confirmation before exiting</para>
156 <indexterm zone="ch-system-psmisc pstree.x11">
157 <primary sortas="b-pstree.x11">pstree.x11</primary>
158 </indexterm>
159 </listitem>
160 </varlistentry>
161
162 </variablelist>
163
164 </sect2>
165
166</sect1>
Note: See TracBrowser for help on using the repository browser.