Changeset 529c103 for chapter06/psmisc.xml
- Timestamp:
- 02/07/2006 07:46:27 PM (18 years ago)
- Children:
- e02afe0
- Parents:
- 1798edf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/psmisc.xml
r1798edf r529c103 1 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" [ 2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" 3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [ 3 4 <!ENTITY % general-entities SYSTEM "../general.ent"> 4 5 %general-entities; 5 6 ]> 7 6 8 <sect1 id="ch-system-psmisc" role="wrap"> 7 <title>Psmisc-&psmisc-version;</title> 8 <?dbhtml filename="psmisc.html"?> 9 <?dbhtml filename="psmisc.html"?> 9 10 10 <indexterm zone="ch-system-psmisc"><primary sortas="a-Psmisc">Psmisc</primary></indexterm>11 <title>Psmisc-&psmisc-version;</title> 11 12 12 <sect2 role="package"><title/>13 <para>The Psmisc package contains programs for displaying information about 14 running processes.</para>13 <indexterm zone="ch-system-psmisc"> 14 <primary sortas="a-Psmisc">Psmisc</primary> 15 </indexterm> 15 16 16 <segmentedlist> 17 <segtitle>&buildtime;</segtitle> 18 <segtitle>&diskspace;</segtitle> 19 <seglistitem><seg>0.1 SBU</seg><seg>1.7 MB</seg></seglistitem> 20 </segmentedlist> 17 <sect2 role="package"> 18 <title/> 21 19 22 <segmentedlist> 23 <segtitle>&dependencies;</segtitle> 24 <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils, 25 GCC, Gettext, Glibc, Grep, Make, Ncurses, and Sed</seg></seglistitem> 26 </segmentedlist> 27 </sect2> 20 <para>The Psmisc package contains programs for displaying information about 21 running processes.</para> 28 22 29 <sect2 role="installation"> 30 <title>Installation of Psmisc</title> 23 <segmentedlist> 24 <segtitle>&buildtime;</segtitle> 25 <segtitle>&diskspace;</segtitle> 31 26 32 <para>Prepare Psmisc for compilation:</para> 27 <seglistitem> 28 <seg>0.1 SBU</seg> 29 <seg>1.7 MB</seg> 30 </seglistitem> 31 </segmentedlist> 32 33 <segmentedlist> 34 <segtitle>&dependencies;</segtitle> 35 36 <seglistitem> 37 <seg>Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc, Grep, 38 Make, Ncurses, and Sed</seg> 39 </seglistitem> 40 </segmentedlist> 41 42 </sect2> 43 44 <sect2 role="installation"> 45 <title>Installation of Psmisc</title> 46 47 <para>Prepare Psmisc for compilation:</para> 33 48 34 49 <screen><userinput>./configure --prefix=/usr --exec-prefix=""</userinput></screen> 35 50 36 <para>The meaning of the configure options:</para> 51 <variablelist> 52 <title>The meaning of the configure options:</title> 37 53 38 <variablelist>39 <varlistentry>40 <term><parameter>--exec-prefix=""</parameter></term>41 <listitem><para>This ensures that the Psmisc binaries will install into42 <filename class="directory">/bin</filename> instead of <filename43 class="directory">/usr/bin</filename>. This is the correct location according to 44 the FHS, because some of the Psmisc binaries are used by the LFS-Bootscripts 45 package.</para></listitem>46 </varlistentry>47 </variablelist>54 <varlistentry> 55 <term><parameter>--exec-prefix=""</parameter></term> 56 <listitem> 57 <para>This ensures that the Psmisc binaries will install into 58 <filename class="directory">/bin</filename> instead of <filename 59 class="directory">/usr/bin</filename>. This is the correct location 60 according to the FHS, because some of the Psmisc binaries are used 61 by the LFS-Bootscripts package.</para> 62 </listitem> 63 </varlistentry> 48 64 49 <para>Compile the package:</para> 65 </variablelist> 66 67 <para>Compile the package:</para> 50 68 51 69 <screen><userinput>make</userinput></screen> 52 70 53 <para>This package does not come with a test suite.</para>71 <para>This package does not come with a test suite.</para> 54 72 55 <para>Install the package:</para>73 <para>Install the package:</para> 56 74 57 75 <screen><userinput>make install</userinput></screen> 58 76 59 <para>There is no reason for the <command>pstree</command> and60 <command>pstree.x11</command> programs to reside in <filename61 class="directory">/bin</filename>. Therefore, move them to <filename62 class="directory">/usr/bin</filename>:</para>77 <para>There is no reason for the <command>pstree</command> and 78 <command>pstree.x11</command> programs to reside in <filename 79 class="directory">/bin</filename>. Therefore, move them to <filename 80 class="directory">/usr/bin</filename>:</para> 63 81 64 82 <screen><userinput>mv -v /bin/pstree* /usr/bin</userinput></screen> 65 83 66 <para>By default, Psmisc's <command>pidof</command> program is not67 installed. This usually is not a problem because it is installed later68 in the Sysvinit package, which provides a better69 <command>pidof</command> program. If Sysvinit will not be used for a70 particular system, complete the installation of Psmisc by creating the71 following symlink:</para>84 <para>By default, Psmisc's <command>pidof</command> program is not 85 installed. This usually is not a problem because it is installed later 86 in the Sysvinit package, which provides a better 87 <command>pidof</command> program. If Sysvinit will not be used for a 88 particular system, complete the installation of Psmisc by creating the 89 following symlink:</para> 72 90 73 91 <screen><userinput>ln -sv killall /bin/pidof</userinput></screen> 74 92 75 </sect2>93 </sect2> 76 94 95 <sect2 id="contents-psmisc" role="content"> 96 <title>Contents of Psmisc</title> 77 97 78 <sect2 id="contents-psmisc" role="content"><title>Contents of Psmisc</title> 98 <segmentedlist> 99 <segtitle>Installed programs</segtitle> 79 100 80 <segmentedlist>81 <segtitle>Installed programs</segtitle>82 <seglistitem><seg>fuser, killall, pstree, and pstree.x11 (link to pstree)</seg></seglistitem>83 </segmentedlist>101 <seglistitem> 102 <seg>fuser, killall, pstree, and pstree.x11 (link to pstree)</seg> 103 </seglistitem> 104 </segmentedlist> 84 105 85 <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead> 86 <?dbfo list-presentation="list"?> 87 <?dbhtml list-presentation="table"?> 106 <variablelist> 107 <bridgehead renderas="sect3">Short Descriptions</bridgehead> 108 <?dbfo list-presentation="list"?> 109 <?dbhtml list-presentation="table"?> 88 110 89 <varlistentry id="fuser"> 90 <term><command>fuser</command></term> 91 <listitem> 92 <para>Reports the Process IDs (PIDs) of processes that use the given files or file systems</para> 93 <indexterm zone="ch-system-psmisc fuser"><primary sortas="b-fuser">fuser</primary></indexterm> 94 </listitem> 95 </varlistentry> 111 <varlistentry id="fuser"> 112 <term><command>fuser</command></term> 113 <listitem> 114 <para>Reports the Process IDs (PIDs) of processes that use the given 115 files or file systems</para> 116 <indexterm zone="ch-system-psmisc fuser"> 117 <primary sortas="b-fuser">fuser</primary> 118 </indexterm> 119 </listitem> 120 </varlistentry> 96 121 97 <varlistentry id="killall"> 98 <term><command>killall</command></term> 99 <listitem> 100 <para>Kills processes by name; it sends a signal to all processes 101 running any of the given commands</para> 102 <indexterm zone="ch-system-psmisc killall"><primary sortas="b-killall">killall</primary></indexterm> 103 </listitem> 104 </varlistentry> 122 <varlistentry id="killall"> 123 <term><command>killall</command></term> 124 <listitem> 125 <para>Kills processes by name; it sends a signal to all processes 126 running any of the given commands</para> 127 <indexterm zone="ch-system-psmisc killall"> 128 <primary sortas="b-killall">killall</primary> 129 </indexterm> 130 </listitem> 131 </varlistentry> 105 132 106 <varlistentry id="oldfuser"> 107 <term><command>oldfuser</command></term> 108 <listitem> 109 <para>Reports the Process IDs (PIDs) of processes that use the given files or file systems</para> 110 <indexterm zone="ch-system-psmisc oldfuser"><primary sortas="b-oldfuser">oldfuser</primary></indexterm> 111 </listitem> 112 </varlistentry> 133 <varlistentry id="oldfuser"> 134 <term><command>oldfuser</command></term> 135 <listitem> 136 <para>Reports the Process IDs (PIDs) of processes that use the given 137 files or file systems</para> 138 <indexterm zone="ch-system-psmisc oldfuser"> 139 <primary sortas="b-oldfuser">oldfuser</primary> 140 </indexterm> 141 </listitem> 142 </varlistentry> 113 143 114 <varlistentry id="pstree"> 115 <term><command>pstree</command></term> 116 <listitem> 117 <para>Displays running processes as a tree</para> 118 <indexterm zone="ch-system-psmisc pstree"><primary sortas="b-pstree">pstree</primary></indexterm> 119 </listitem> 120 </varlistentry> 144 <varlistentry id="pstree"> 145 <term><command>pstree</command></term> 146 <listitem> 147 <para>Displays running processes as a tree</para> 148 <indexterm zone="ch-system-psmisc pstree"> 149 <primary sortas="b-pstree">pstree</primary> 150 </indexterm> 151 </listitem> 152 </varlistentry> 121 153 122 <varlistentry id="pstree.x11"> 123 <term><command>pstree.x11</command></term> 124 <listitem> 125 <para>Same as <command>pstree</command>, except that it waits for confirmation before exiting</para> 126 <indexterm zone="ch-system-psmisc pstree.x11"><primary sortas="b-pstree.x11">pstree.x11</primary></indexterm> 127 </listitem> 128 </varlistentry> 129 </variablelist> 154 <varlistentry id="pstree.x11"> 155 <term><command>pstree.x11</command></term> 156 <listitem> 157 <para>Same as <command>pstree</command>, except that it waits for 158 confirmation before exiting</para> 159 <indexterm zone="ch-system-psmisc pstree.x11"> 160 <primary sortas="b-pstree.x11">pstree.x11</primary> 161 </indexterm> 162 </listitem> 163 </varlistentry> 130 164 131 </sect2> 165 </variablelist> 166 167 </sect2> 132 168 133 169 </sect1> 134
Note:
See TracChangeset
for help on using the changeset viewer.