[3f8be484] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[aa18ac0] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[3f8be484] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-system-psmisc" role="wrap">
|
---|
| 9 | <?dbhtml filename="psmisc.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Psmisc-&psmisc-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-system-psmisc">
|
---|
| 14 | <primary sortas="a-Psmisc">Psmisc</primary>
|
---|
| 15 | </indexterm>
|
---|
| 16 |
|
---|
| 17 | <sect2 role="package">
|
---|
| 18 | <title/>
|
---|
| 19 |
|
---|
| 20 | <para>The Psmisc package contains programs for displaying information
|
---|
| 21 | about running processes.</para>
|
---|
| 22 |
|
---|
| 23 | </sect2>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="installation">
|
---|
| 26 | <title>Installation of Psmisc</title>
|
---|
| 27 |
|
---|
| 28 | <para os="a">Prepare Psmisc for compilation:</para>
|
---|
| 29 |
|
---|
[e0e40d3] | 30 | <screen os="b"><userinput>./configure --prefix=/usr --exec-prefix=""</userinput></screen>
|
---|
[3f8be484] | 31 |
|
---|
[e0e40d3] | 32 | <variablelist os="c">
|
---|
[3f8be484] | 33 | <title>The meaning of the configure option:</title>
|
---|
| 34 |
|
---|
| 35 | <varlistentry>
|
---|
| 36 | <term><parameter>--exec-prefix=""</parameter></term>
|
---|
| 37 | <listitem>
|
---|
| 38 | <para>This ensures that the Psmisc binaries will install into
|
---|
| 39 | <filename class="directory">/bin</filename> instead of
|
---|
| 40 | <filename class="directory">/usr/bin</filename>. This is the
|
---|
| 41 | correct location according to the FHS, because some of the Psmisc
|
---|
[fb40919] | 42 | binaries are used by the CLFS-Bootscripts package.</para>
|
---|
[3f8be484] | 43 | </listitem>
|
---|
| 44 | </varlistentry>
|
---|
| 45 | </variablelist>
|
---|
| 46 |
|
---|
[e0e40d3] | 47 | <para os="d">Compile the package:</para>
|
---|
[3f8be484] | 48 |
|
---|
[e0e40d3] | 49 | <screen os="e"><userinput>make</userinput></screen>
|
---|
[3f8be484] | 50 |
|
---|
[d1631d1] | 51 | <para os="f">This package does not come with a test suite.</para>
|
---|
[3f8be484] | 52 |
|
---|
[d1631d1] | 53 | <para os="g">Install the package:</para>
|
---|
[3f8be484] | 54 |
|
---|
[d1631d1] | 55 | <screen os="h"><userinput>make install</userinput></screen>
|
---|
| 56 |
|
---|
| 57 | <para os="i">There is no reason for the <command>pstree</command> and
|
---|
[3f8be484] | 58 | <command>pstree.x11</command> programs to reside in <filename
|
---|
| 59 | class="directory">/bin</filename>. Therefore, move them to <filename
|
---|
| 60 | class="directory">/usr/bin</filename>:</para>
|
---|
| 61 |
|
---|
[d1631d1] | 62 | <screen os="j"><userinput>mv -v /bin/pstree* /usr/bin</userinput></screen>
|
---|
[3f8be484] | 63 |
|
---|
[d1631d1] | 64 | <para os="k">By default, Psmisc's <command>pidof</command> program is not installed.
|
---|
[3f8be484] | 65 | This usually is not a problem because it is installed later in the Sysvinit
|
---|
| 66 | package, which provides a better <command>pidof</command> program. If
|
---|
| 67 | Sysvinit will not be used for a particular system, complete the installation
|
---|
| 68 | of Psmisc by creating the following symlink:</para>
|
---|
| 69 |
|
---|
[84c7db2] | 70 | <screen os="l" role="nodump"><userinput>ln -sv killall /bin/pidof</userinput></screen>
|
---|
[3f8be484] | 71 |
|
---|
| 72 | </sect2>
|
---|
| 73 |
|
---|
| 74 | <sect2 id="contents-psmisc" role="content">
|
---|
| 75 | <title>Contents of Psmisc</title>
|
---|
| 76 |
|
---|
| 77 | <segmentedlist>
|
---|
| 78 | <segtitle>Installed programs</segtitle>
|
---|
| 79 |
|
---|
| 80 | <seglistitem>
|
---|
[188b6b2] | 81 | <seg>fuser, killall, peekfd, pstree, and pstree.x11 (link to pstree)</seg>
|
---|
[3f8be484] | 82 | </seglistitem>
|
---|
| 83 | </segmentedlist>
|
---|
| 84 |
|
---|
| 85 | <variablelist>
|
---|
| 86 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 87 | <?dbfo list-presentation="list"?>
|
---|
| 88 | <?dbhtml list-presentation="table"?>
|
---|
| 89 |
|
---|
| 90 | <varlistentry id="fuser">
|
---|
| 91 | <term><command>fuser</command></term>
|
---|
| 92 | <listitem>
|
---|
| 93 | <para>Reports the Process IDs (PIDs) of processes that use the given
|
---|
| 94 | files or file systems</para>
|
---|
| 95 | <indexterm zone="ch-system-psmisc fuser">
|
---|
| 96 | <primary sortas="b-fuser">fuser</primary>
|
---|
| 97 | </indexterm>
|
---|
| 98 | </listitem>
|
---|
| 99 | </varlistentry>
|
---|
| 100 |
|
---|
| 101 | <varlistentry id="killall">
|
---|
| 102 | <term><command>killall</command></term>
|
---|
| 103 | <listitem>
|
---|
| 104 | <para>Kills processes by name; it sends a signal to all processes
|
---|
| 105 | running any of the given commands</para>
|
---|
| 106 | <indexterm zone="ch-system-psmisc killall">
|
---|
| 107 | <primary sortas="b-killall">killall</primary>
|
---|
| 108 | </indexterm>
|
---|
| 109 | </listitem>
|
---|
| 110 | </varlistentry>
|
---|
| 111 |
|
---|
[427015f] | 112 | <varlistentry id="peekfd">
|
---|
| 113 | <term><command>peekfd</command></term>
|
---|
| 114 | <listitem>
|
---|
| 115 | <para> Peeks at file descriptors of running processes</para>
|
---|
| 116 | <indexterm zone="ch-system-psmisc peekfd">
|
---|
| 117 | <primary sortas="b-peekfd">peekfd</primary>
|
---|
| 118 | </indexterm>
|
---|
| 119 | </listitem>
|
---|
| 120 | </varlistentry>
|
---|
| 121 |
|
---|
[3f8be484] | 122 | <varlistentry id="pstree">
|
---|
| 123 | <term><command>pstree</command></term>
|
---|
| 124 | <listitem>
|
---|
| 125 | <para>Displays running processes as a tree</para>
|
---|
| 126 | <indexterm zone="ch-system-psmisc pstree">
|
---|
| 127 | <primary sortas="b-pstree">pstree</primary>
|
---|
| 128 | </indexterm>
|
---|
| 129 | </listitem>
|
---|
| 130 | </varlistentry>
|
---|
| 131 |
|
---|
| 132 | <varlistentry id="pstree.x11">
|
---|
| 133 | <term><command>pstree.x11</command></term>
|
---|
| 134 | <listitem>
|
---|
| 135 | <para>Same as <command>pstree</command>, except that it waits for
|
---|
| 136 | confirmation before exiting</para>
|
---|
| 137 | <indexterm zone="ch-system-psmisc pstree.x11">
|
---|
| 138 | <primary sortas="b-pstree.x11">pstree.x11</primary>
|
---|
| 139 | </indexterm>
|
---|
| 140 | </listitem>
|
---|
| 141 | </varlistentry>
|
---|
| 142 |
|
---|
| 143 | </variablelist>
|
---|
| 144 |
|
---|
| 145 | </sect2>
|
---|
| 146 |
|
---|
| 147 | </sect1>
|
---|