source: chapter06/psmisc.xml@ 45992ae

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.1 6.1.1 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 45992ae was 45992ae, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Removed the package name from the dependencies titles.

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

  • Property mode set to 100644
File size: 4.3 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<sect1 id="ch-system-psmisc" role="wrap">
7<title>Psmisc-&psmisc-version;</title>
8<?dbhtml filename="psmisc.html"?>
9
10<indexterm zone="ch-system-psmisc"><primary sortas="a-Psmisc">Psmisc</primary></indexterm>
11
12<sect2 role="package"><title/>
13<para>The Psmisc package contains programs for displaying information on
14processes.</para>
15
16<segmentedlist>
17<segtitle>&buildtime;</segtitle>
18<segtitle>&diskspace;</segtitle>
19<seglistitem><seg>0.1 SBU</seg><seg>2.2 MB</seg></seglistitem>
20</segmentedlist>
21
22<segmentedlist>
23<segtitle>&dependencies;</segtitle>
24<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
25GCC, Gettext, Glibc, Grep, Make, Ncurses, and Sed</seg></seglistitem>
26</segmentedlist>
27</sect2>
28
29<sect2 role="installation">
30<title>Installation of Psmisc</title>
31
32<para>Prepare Psmisc for compilation:</para>
33
34<screen><userinput>./configure --prefix=/usr --exec-prefix=""</userinput></screen>
35
36<para>The meaning of the configure option:</para>
37
38<variablelist>
39<varlistentry>
40<term><parameter>--exec-prefix=""</parameter></term>
41<listitem><para>This causes the binaries to be installed in <filename
42class="directory">/bin</filename> instead of <filename
43class="directory">/usr/bin</filename>. Because the Psmisc programs are
44often used in bootscripts, they should be available when the <filename
45class="directory">/usr</filename> file system is not
46mounted.</para></listitem>
47</varlistentry>
48</variablelist>
49
50<para>Compile the package:</para>
51
52<screen><userinput>make</userinput></screen>
53
54<para>Install the package:</para>
55
56<screen><userinput>make install</userinput></screen>
57
58<para>There is no reason for the <command>pstree</command> and
59<command>pstree.x11</command> programs to reside in <filename
60class="directory">/bin</filename>. Therefore, move them to <filename
61class="directory">/usr/bin</filename>. Also, there is no need for
62<command>pstree.x11</command> to exist as a separate program. Make it
63a symbolic link to <command>pstree</command> instead:</para>
64
65<screen><userinput>mv /bin/pstree* /usr/bin
66ln -sf pstree /usr/bin/pstree.x11</userinput></screen>
67
68<para>By default, Psmisc's <command>pidof</command> program is not
69installed. This usually is not a problem because it is installed later
70in the Sysvinit package, which provides a better
71<command>pidof</command> program. If Sysvinit will not be used for a
72particular system, complete the installation of Psmisc by creating the
73following symlink:</para>
74
75<screen><userinput>ln -s killall /bin/pidof</userinput></screen>
76
77</sect2>
78
79
80<sect2 id="contents-psmisc" role="content"><title>Contents of Psmisc</title>
81
82<segmentedlist>
83<segtitle>Installed programs</segtitle>
84<seglistitem><seg>fuser, killall, pstree, and pstree.x11 (link to pstree)</seg></seglistitem>
85</segmentedlist>
86
87<variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
88<?dbfo list-presentation="list"?>
89<?dbhtml list-presentation="table"?>
90
91<varlistentry id="fuser">
92<term><command>fuser</command></term>
93<listitem>
94<para>Reports the Process IDs (PIDs) of processes that use the given files or file systems</para>
95<indexterm zone="ch-system-psmisc fuser"><primary sortas="b-fuser">fuser</primary></indexterm>
96</listitem>
97</varlistentry>
98
99<varlistentry id="killall">
100<term><command>killall</command></term>
101<listitem>
102<para>Kills processes by name; it sends a signal to all processes
103running any of the given commands</para>
104<indexterm zone="ch-system-psmisc killall"><primary sortas="b-killall">killall</primary></indexterm>
105</listitem>
106</varlistentry>
107
108<varlistentry id="pstree">
109<term><command>pstree</command></term>
110<listitem>
111<para>Displays running processes as a tree</para>
112<indexterm zone="ch-system-psmisc pstree"><primary sortas="b-pstree">pstree</primary></indexterm>
113</listitem>
114</varlistentry>
115
116<varlistentry id="pstree.x11">
117<term><command>pstree.x11</command></term>
118<listitem>
119<para>Same as <command>pstree</command>, except that it waits for confirmation before exiting</para>
120<indexterm zone="ch-system-psmisc pstree.x11"><primary sortas="b-pstree.x11">pstree.x11</primary></indexterm>
121</listitem>
122</varlistentry>
123</variablelist>
124
125</sect2>
126
127</sect1>
128
Note: See TracBrowser for help on using the repository browser.