source: chapter06/psmisc.xml@ 3546862

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.0 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 3546862 was b8a819f, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

Changed the id's location in the Short descriptions sections to fix a bug in the PDF generation.

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

  • Property mode set to 100644
File size: 4.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<sect1 id="ch-system-psmisc" xreflabel="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>Psmisc installation depends on</segtitle>
24<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
25GCC, Gettext, Glibc, Grep, Make, Ncurses, 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><userinput>--exec-prefix=""</userinput></term>
41<listitem><para>This causes the
42binaries to be installed in <filename>/bin</filename> instead of
43<filename>/usr/bin</filename>. As the Psmisc programs are often used in
44bootscripts, they should be available also when the <filename>/usr</filename>
45file system isn't mounted.</para></listitem>
46</varlistentry>
47</variablelist>
48
49<para>Compile the package:</para>
50
51<screen><userinput>make</userinput></screen>
52
53<para>Now install it:</para>
54
55<screen><userinput>make install</userinput></screen>
56
57<para>There is no reason for the <filename>pstree</filename> and
58<filename>pstree.x11</filename> programs to reside in
59<filename class="directory">/bin</filename>. We therefore move them to
60<filename class="directory">/usr/bin</filename>. Also, there is no need
61for <filename>pstree.x11</filename> to exist as a separate program. We
62therefore make it a symbolic link to <filename>pstree</filename>:</para>
63
64<screen><userinput>mv /bin/pstree* /usr/bin
65ln -sf pstree /usr/bin/pstree.x11</userinput></screen>
66
67<para>By default Psmisc's <command>pidof</command> program isn't installed.
68Generally, this isn't a problem because we later install the Sysvinit package,
69which provides a better <command>pidof</command> program. But if you're not
70going to use Sysvinit, you should complete the installation of Psmisc by
71creating the following symlink:</para>
72
73<screen><userinput>ln -s killall /bin/pidof</userinput></screen>
74
75</sect2>
76
77
78<sect2 id="contents-psmisc" role="content"><title>Contents of Psmisc</title>
79
80<segmentedlist>
81<segtitle>Installed programs</segtitle>
82<seglistitem><seg>fuser, killall, pstree and pstree.x11 (link to pstree)</seg></seglistitem>
83</segmentedlist>
84
85<variablelist><title>Short descriptions</title>
86
87<varlistentry id="fuser">
88<term><command>fuser</command></term>
89<listitem>
90<indexterm zone="ch-system-psmisc fuser"><primary sortas="b-fuser">fuser</primary></indexterm>
91<para>reports the PIDs of processes that use the given files or file systems.</para>
92</listitem>
93</varlistentry>
94
95<varlistentry id="killall">
96<term><command>killall</command></term>
97<listitem>
98<indexterm zone="ch-system-psmisc killall"><primary sortas="b-killall">killall</primary></indexterm>
99<para>kills processes by name. It sends a signal
100to all processes running any of the given commands.</para>
101</listitem>
102</varlistentry>
103
104<varlistentry id="pstree">
105<term><command>pstree</command></term>
106<listitem>
107<indexterm zone="ch-system-psmisc pstree"><primary sortas="b-pstree">pstree</primary></indexterm>
108<para>displays running processes as a tree.</para>
109</listitem>
110</varlistentry>
111
112<varlistentry id="pstree.x11">
113<term><command>pstree.x11</command></term>
114<listitem>
115<indexterm zone="ch-system-psmisc pstree.x11"><primary sortas="b-pstree.x11">pstree.x11</primary></indexterm>
116<para>same as pstree except that it waits for confirmation before exiting.</para>
117</listitem>
118</varlistentry>
119</variablelist>
120
121</sect2>
122
123</sect1>
Note: See TracBrowser for help on using the repository browser.