source: chapter06/psmisc.xml@ 1a017db

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 1a017db was eb6d9eb, checked in by Archaic <archaic@…>, 19 years ago

Updated all chapter 6 build sizes (and chapter7 bootscripts).

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

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