source: chapter06/psmisc.xml@ 083c9f8

Last change on this file since 083c9f8 was a0e1913, 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/branches/multi-arch/BOOK@4691 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>
[a0e1913]23<segtitle>&dependencies;</segtitle>
[a001133]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
[b48b8c5]68
[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"?>
[c5f9180]90<?dbhtml list-presentation="table"?>
[673b0d8]91
[b8a819f]92<varlistentry id="fuser">
93<term><command>fuser</command></term>
[c6cb3aa]94<listitem>
[2256873]95<para>Reports the Process IDs (PIDs) of processes that use the given files or file systems</para>
[3ed279f]96<indexterm zone="ch-system-psmisc fuser"><primary sortas="b-fuser">fuser</primary></indexterm>
[c6cb3aa]97</listitem>
98</varlistentry>
[73aedd1d]99
[b8a819f]100<varlistentry id="killall">
101<term><command>killall</command></term>
[c6cb3aa]102<listitem>
[2256873]103<para>Kills processes by name; it sends a signal to all processes
104running any of the given commands</para>
[3ed279f]105<indexterm zone="ch-system-psmisc killall"><primary sortas="b-killall">killall</primary></indexterm>
[c6cb3aa]106</listitem>
107</varlistentry>
[673b0d8]108
[b8a819f]109<varlistentry id="pstree">
110<term><command>pstree</command></term>
[c6cb3aa]111<listitem>
[2256873]112<para>Displays running processes as a tree</para>
[3ed279f]113<indexterm zone="ch-system-psmisc pstree"><primary sortas="b-pstree">pstree</primary></indexterm>
[c6cb3aa]114</listitem>
115</varlistentry>
[673b0d8]116
[b8a819f]117<varlistentry id="pstree.x11">
118<term><command>pstree.x11</command></term>
[c6cb3aa]119<listitem>
[2256873]120<para>Same as <command>pstree</command>, except that it waits for confirmation before exiting</para>
[3ed279f]121<indexterm zone="ch-system-psmisc pstree.x11"><primary sortas="b-pstree.x11">pstree.x11</primary></indexterm>
[c6cb3aa]122</listitem>
123</varlistentry>
124</variablelist>
[673b0d8]125
126</sect2>
127
128</sect1>
[ef13657]129
Note: See TracBrowser for help on using the repository browser.