source: chapter06/psmisc.xml@ e6c8119

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.3 6.4 6.5 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 e6c8119 was e4a5635, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Replaced "<" by "less than".

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

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