source: chapter06/psmisc.xml@ 3210271

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 12.2 12.2-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/loongarch-12.2 xry111/mips64el xry111/multilib xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 3210271 was c6cb3aa, checked in by Manuel Canales Esparcia <manuel@…>, 20 years ago

HEAD: Retagged the Contents of ... sections.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3621 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<itemizedlist>
39<listitem><para><userinput>--exec-prefix=""</userinput>: This causes the
40binaries to be installed in <filename>/bin</filename> instead of
41<filename>/usr/bin</filename>. As the Psmisc programs are often used in
42bootscripts, they should be available also when the <filename>/usr</filename>
43file system isn't mounted.</para></listitem>
44</itemizedlist>
45
46<para>Compile the package:</para>
47
48<screen><userinput>make</userinput></screen>
49
50<para>Now install it:</para>
51
52<screen><userinput>make install</userinput></screen>
53
54<para>There is no reason for the <filename>pstree</filename> and
55<filename>pstree.x11</filename> programs to reside in
56<filename class="directory">/bin</filename>. We therefore move them to
57<filename class="directory">/usr/bin</filename>. Also, there is no need
58for <filename>pstree.x11</filename> to exist as a separate program. We
59therefore make it a symbolic link to <filename>pstree</filename>:</para>
60
61<screen><userinput>mv /bin/pstree* /usr/bin
62ln -sf pstree /usr/bin/pstree.x11</userinput></screen>
63
64<para>By default Psmisc's <command>pidof</command> program isn't installed.
65Generally, this isn't a problem because we later install the Sysvinit package,
66which provides a better <command>pidof</command> program. But if you're not
67going to use Sysvinit, you should complete the installation of Psmisc by
68creating the following symlink:</para>
69
70<screen><userinput>ln -s killall /bin/pidof</userinput></screen>
71
72</sect2>
73
74
75<sect2 id="contents-psmisc" role="content"><title>Contents of Psmisc</title>
76
77<segmentedlist>
78<segtitle>Installed programs</segtitle>
79<seglistitem><seg>fuser, killall, pstree and pstree.x11 (link to pstree)</seg></seglistitem>
80</segmentedlist>
81
82<variablelist><title>Short descriptions</title>
83
84<varlistentry>
85<term id="fuser"><command>fuser</command></term>
86<listitem>
87<indexterm zone="ch-system-psmisc fuser"><primary sortas="b-fuser">fuser</primary></indexterm>
88<para>reports the PIDs of processes that use the given files or file systems.</para>
89</listitem>
90</varlistentry>
91
92<varlistentry>
93<term id="killall"><command>killall</command></term>
94<listitem>
95<indexterm zone="ch-system-psmisc killall"><primary sortas="b-killall">killall</primary></indexterm>
96<para>kills processes by name. It sends a signal
97to all processes running any of the given commands.</para>
98</listitem>
99</varlistentry>
100
101<varlistentry>
102<term id="pstree"><command>pstree</command></term>
103<listitem>
104<indexterm zone="ch-system-psmisc pstree"><primary sortas="b-pstree">pstree</primary></indexterm>
105<para>displays running processes as a tree.</para>
106</listitem>
107</varlistentry>
108
109<varlistentry>
110<term id="pstree.x11"><command>pstree.x11</command></term>
111<listitem>
112<indexterm zone="ch-system-psmisc pstree.x11"><primary sortas="b-pstree.x11">pstree.x11</primary></indexterm>
113<para>same as pstree except that it waits for confirmation before exiting.</para>
114</listitem>
115</varlistentry>
116</variablelist>
117
118</sect2>
119
120</sect1>
Note: See TracBrowser for help on using the repository browser.