source: chapter06/psmisc.xml@ ddd5542

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 ddd5542 was 3f3931b0, checked in by Manuel Canales Esparcia <manuel@…>, 18 years ago

Indenting chapter 6, part 9

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7362 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.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>0.1 SBU</seg>
29 <seg>1.7 MB</seg>
30 </seglistitem>
31 </segmentedlist>
32
33 <segmentedlist>
34 <segtitle>&dependencies;</segtitle>
35
36 <seglistitem>
37 <seg>Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc, Grep,
38 Make, Ncurses, and Sed</seg>
39 </seglistitem>
40 </segmentedlist>
41
42 </sect2>
43
44 <sect2 role="installation">
45 <title>Installation of Psmisc</title>
46
47 <para>Prepare Psmisc for compilation:</para>
48
49<screen><userinput>./configure --prefix=/usr --exec-prefix=""</userinput></screen>
50
51 <variablelist>
52 <title>The meaning of the configure options:</title>
53
54 <varlistentry>
55 <term><parameter>--exec-prefix=""</parameter></term>
56 <listitem>
57 <para>This ensures that the Psmisc binaries will install into
58 <filename class="directory">/bin</filename> instead of <filename
59 class="directory">/usr/bin</filename>. This is the correct location
60 according to the FHS, because some of the Psmisc binaries are used
61 by the LFS-Bootscripts package.</para>
62 </listitem>
63 </varlistentry>
64
65 </variablelist>
66
67 <para>Compile the package:</para>
68
69<screen><userinput>make</userinput></screen>
70
71 <para>This package does not come with a test suite.</para>
72
73 <para>Install the package:</para>
74
75<screen><userinput>make install</userinput></screen>
76
77 <para>There is no reason for the <command>pstree</command> and
78 <command>pstree.x11</command> programs to reside in <filename
79 class="directory">/bin</filename>. Therefore, move them to <filename
80 class="directory">/usr/bin</filename>:</para>
81
82<screen><userinput>mv -v /bin/pstree* /usr/bin</userinput></screen>
83
84 <para>By default, Psmisc's <command>pidof</command> program is not
85 installed. This usually is not a problem because it is installed later
86 in the Sysvinit package, which provides a better
87 <command>pidof</command> program. If Sysvinit will not be used for a
88 particular system, complete the installation of Psmisc by creating the
89 following symlink:</para>
90
91<screen><userinput>ln -sv killall /bin/pidof</userinput></screen>
92
93 </sect2>
94
95 <sect2 id="contents-psmisc" role="content">
96 <title>Contents of Psmisc</title>
97
98 <segmentedlist>
99 <segtitle>Installed programs</segtitle>
100
101 <seglistitem>
102 <seg>fuser, killall, pstree, and pstree.x11 (link to pstree)</seg>
103 </seglistitem>
104 </segmentedlist>
105
106 <variablelist>
107 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
108 <?dbfo list-presentation="list"?>
109 <?dbhtml list-presentation="table"?>
110
111 <varlistentry id="fuser">
112 <term><command>fuser</command></term>
113 <listitem>
114 <para>Reports the Process IDs (PIDs) of processes that use the given
115 files or file systems</para>
116 <indexterm zone="ch-system-psmisc fuser">
117 <primary sortas="b-fuser">fuser</primary>
118 </indexterm>
119 </listitem>
120 </varlistentry>
121
122 <varlistentry id="killall">
123 <term><command>killall</command></term>
124 <listitem>
125 <para>Kills processes by name; it sends a signal to all processes
126 running any of the given commands</para>
127 <indexterm zone="ch-system-psmisc killall">
128 <primary sortas="b-killall">killall</primary>
129 </indexterm>
130 </listitem>
131 </varlistentry>
132
133 <varlistentry id="oldfuser">
134 <term><command>oldfuser</command></term>
135 <listitem>
136 <para>Reports the Process IDs (PIDs) of processes that use the given
137 files or file systems</para>
138 <indexterm zone="ch-system-psmisc oldfuser">
139 <primary sortas="b-oldfuser">oldfuser</primary>
140 </indexterm>
141 </listitem>
142 </varlistentry>
143
144 <varlistentry id="pstree">
145 <term><command>pstree</command></term>
146 <listitem>
147 <para>Displays running processes as a tree</para>
148 <indexterm zone="ch-system-psmisc pstree">
149 <primary sortas="b-pstree">pstree</primary>
150 </indexterm>
151 </listitem>
152 </varlistentry>
153
154 <varlistentry id="pstree.x11">
155 <term><command>pstree.x11</command></term>
156 <listitem>
157 <para>Same as <command>pstree</command>, except that it waits for
158 confirmation before exiting</para>
159 <indexterm zone="ch-system-psmisc pstree.x11">
160 <primary sortas="b-pstree.x11">pstree.x11</primary>
161 </indexterm>
162 </listitem>
163 </varlistentry>
164
165 </variablelist>
166
167 </sect2>
168
169</sect1>
Note: See TracBrowser for help on using the repository browser.