[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[b06ca36] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[673b0d8] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
[3f3931b0] | 7 |
|
---|
[81fd230] | 8 | <sect1 id="ch-system-psmisc" role="wrap">
|
---|
[3f3931b0] | 9 | <?dbhtml filename="psmisc.html"?>
|
---|
| 10 |
|
---|
[e747759] | 11 | <sect1info condition="script">
|
---|
| 12 | <productname>psmisc</productname>
|
---|
| 13 | <productnumber>&psmisc-version;</productnumber>
|
---|
| 14 | <address>&psmisc-url;</address>
|
---|
| 15 | </sect1info>
|
---|
| 16 |
|
---|
[3f3931b0] | 17 | <title>Psmisc-&psmisc-version;</title>
|
---|
| 18 |
|
---|
| 19 | <indexterm zone="ch-system-psmisc">
|
---|
| 20 | <primary sortas="a-Psmisc">Psmisc</primary>
|
---|
| 21 | </indexterm>
|
---|
| 22 |
|
---|
| 23 | <sect2 role="package">
|
---|
| 24 | <title/>
|
---|
[673b0d8] | 25 |
|
---|
[3f3931b0] | 26 | <para>The Psmisc package contains programs for displaying information about
|
---|
| 27 | running processes.</para>
|
---|
[6370fa6] | 28 |
|
---|
[3f3931b0] | 29 | <segmentedlist>
|
---|
| 30 | <segtitle>&buildtime;</segtitle>
|
---|
| 31 | <segtitle>&diskspace;</segtitle>
|
---|
[5888299] | 32 |
|
---|
[3f3931b0] | 33 | <seglistitem>
|
---|
[e4a5635] | 34 | <seg>&psmisc-ch6-sbu;</seg>
|
---|
| 35 | <seg>&psmisc-ch6-du;</seg>
|
---|
[3f3931b0] | 36 | </seglistitem>
|
---|
| 37 | </segmentedlist>
|
---|
[673b0d8] | 38 |
|
---|
[3f3931b0] | 39 | </sect2>
|
---|
| 40 |
|
---|
| 41 | <sect2 role="installation">
|
---|
| 42 | <title>Installation of Psmisc</title>
|
---|
| 43 |
|
---|
| 44 | <para>Prepare Psmisc for compilation:</para>
|
---|
[73aedd1d] | 45 |
|
---|
[1b25750c] | 46 | <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
|
---|
[3f3931b0] | 47 |
|
---|
| 48 | <para>Compile the package:</para>
|
---|
[73aedd1d] | 49 |
|
---|
[0445a3d] | 50 | <screen><userinput remap="make">make</userinput></screen>
|
---|
[73aedd1d] | 51 |
|
---|
[3f3931b0] | 52 | <para>This package does not come with a test suite.</para>
|
---|
[0be3d41] | 53 |
|
---|
[3f3931b0] | 54 | <para>Install the package:</para>
|
---|
[73aedd1d] | 55 |
|
---|
[0445a3d] | 56 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
[73aedd1d] | 57 |
|
---|
[a9fa36e] | 58 | <!--
|
---|
[3f3931b0] | 59 | <para>By default, Psmisc's <command>pidof</command> program is not
|
---|
| 60 | installed. This usually is not a problem because it is installed later
|
---|
| 61 | in the Sysvinit package, which provides a better
|
---|
| 62 | <command>pidof</command> program. If Sysvinit will not be used for a
|
---|
[d48e6eb] | 63 | particular system, complete the installation of Psmisc by first moving
|
---|
| 64 | the <command>killall</command> to the correct location, as specified by the
|
---|
| 65 | FHS, then create a symlink to it:</para>
|
---|
[73aedd1d] | 66 |
|
---|
[7249d0a] | 67 | <screen><userinput remap="install">mv /usr/bin/killall /bin
|
---|
| 68 | ln -sv killall /bin/pidof</userinput></screen>
|
---|
[a9fa36e] | 69 | -->
|
---|
| 70 | <para>Finally, move the <command>killall</command> and <command>fuser</command>
|
---|
| 71 | programs to the location specified by the FHS:</para>
|
---|
[73aedd1d] | 72 |
|
---|
[a9fa36e] | 73 | <screen><userinput remap="install">mv -v /usr/bin/fuser /bin
|
---|
| 74 | mv -v /usr/bin/killall /bin</userinput></screen>
|
---|
[d48e6eb] | 75 |
|
---|
[3f3931b0] | 76 | </sect2>
|
---|
| 77 |
|
---|
| 78 | <sect2 id="contents-psmisc" role="content">
|
---|
| 79 | <title>Contents of Psmisc</title>
|
---|
| 80 |
|
---|
| 81 | <segmentedlist>
|
---|
| 82 | <segtitle>Installed programs</segtitle>
|
---|
| 83 |
|
---|
| 84 | <seglistitem>
|
---|
[9d42ad9] | 85 | <seg>fuser, killall, peekfd, prtstat, pstree, and pstree.x11 (link to pstree)</seg>
|
---|
[3f3931b0] | 86 | </seglistitem>
|
---|
| 87 | </segmentedlist>
|
---|
| 88 |
|
---|
| 89 | <variablelist>
|
---|
| 90 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 91 | <?dbfo list-presentation="list"?>
|
---|
| 92 | <?dbhtml list-presentation="table"?>
|
---|
| 93 |
|
---|
| 94 | <varlistentry id="fuser">
|
---|
| 95 | <term><command>fuser</command></term>
|
---|
| 96 | <listitem>
|
---|
| 97 | <para>Reports the Process IDs (PIDs) of processes that use the given
|
---|
| 98 | files or file systems</para>
|
---|
| 99 | <indexterm zone="ch-system-psmisc fuser">
|
---|
| 100 | <primary sortas="b-fuser">fuser</primary>
|
---|
| 101 | </indexterm>
|
---|
| 102 | </listitem>
|
---|
| 103 | </varlistentry>
|
---|
| 104 |
|
---|
| 105 | <varlistentry id="killall">
|
---|
| 106 | <term><command>killall</command></term>
|
---|
| 107 | <listitem>
|
---|
| 108 | <para>Kills processes by name; it sends a signal to all processes
|
---|
| 109 | running any of the given commands</para>
|
---|
| 110 | <indexterm zone="ch-system-psmisc killall">
|
---|
| 111 | <primary sortas="b-killall">killall</primary>
|
---|
| 112 | </indexterm>
|
---|
| 113 | </listitem>
|
---|
| 114 | </varlistentry>
|
---|
| 115 |
|
---|
[2791a8e] | 116 | <varlistentry id="peekfd">
|
---|
| 117 | <term><command>peekfd</command></term>
|
---|
| 118 | <listitem>
|
---|
| 119 | <para>Peek at file descriptors of a running process, given its
|
---|
| 120 | PID</para>
|
---|
| 121 | <indexterm zone="ch-system-psmisc peekfd">
|
---|
| 122 | <primary sortas="b-peekfd">peekfd</primary>
|
---|
| 123 | </indexterm>
|
---|
| 124 | </listitem>
|
---|
| 125 | </varlistentry>
|
---|
| 126 |
|
---|
[9d42ad9] | 127 | <varlistentry id="prtstat">
|
---|
| 128 | <term><command>prtstat</command></term>
|
---|
| 129 | <listitem>
|
---|
| 130 | <para>Prints information about a process</para>
|
---|
| 131 | <indexterm zone="ch-system-psmisc prtstat">
|
---|
| 132 | <primary sortas="b-prtstat">prtstat</primary>
|
---|
| 133 | </indexterm>
|
---|
| 134 | </listitem>
|
---|
| 135 | </varlistentry>
|
---|
| 136 |
|
---|
[3f3931b0] | 137 | <varlistentry id="pstree">
|
---|
| 138 | <term><command>pstree</command></term>
|
---|
| 139 | <listitem>
|
---|
| 140 | <para>Displays running processes as a tree</para>
|
---|
| 141 | <indexterm zone="ch-system-psmisc pstree">
|
---|
| 142 | <primary sortas="b-pstree">pstree</primary>
|
---|
| 143 | </indexterm>
|
---|
| 144 | </listitem>
|
---|
| 145 | </varlistentry>
|
---|
| 146 |
|
---|
| 147 | <varlistentry id="pstree.x11">
|
---|
| 148 | <term><command>pstree.x11</command></term>
|
---|
| 149 | <listitem>
|
---|
| 150 | <para>Same as <command>pstree</command>, except that it waits for
|
---|
| 151 | confirmation before exiting</para>
|
---|
| 152 | <indexterm zone="ch-system-psmisc pstree.x11">
|
---|
| 153 | <primary sortas="b-pstree.x11">pstree.x11</primary>
|
---|
| 154 | </indexterm>
|
---|
| 155 | </listitem>
|
---|
| 156 | </varlistentry>
|
---|
| 157 |
|
---|
| 158 | </variablelist>
|
---|
| 159 |
|
---|
| 160 | </sect2>
|
---|
[673b0d8] | 161 |
|
---|
| 162 | </sect1>
|
---|