source: chapter06/psmisc.xml@ c2133bc

Last change on this file since c2133bc was c2133bc, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Upgraded to DocBook 4.4 DTD

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multi-arch/BOOK@4605 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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