[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[1770019] | 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 | ]>
|
---|
[81fd230] | 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/>
|
---|
[90b56f5] | 13 | <para>The Psmisc package contains programs for displaying information about
|
---|
| 14 | running processes.</para>
|
---|
[5888299] | 15 |
|
---|
[a001133] | 16 | <segmentedlist>
|
---|
| 17 | <segtitle>&buildtime;</segtitle>
|
---|
| 18 | <segtitle>&diskspace;</segtitle>
|
---|
[fc1024a] | 19 | <seglistitem><seg>0.1 SBU</seg><seg>1.7 MB</seg></seglistitem>
|
---|
[a001133] | 20 | </segmentedlist>
|
---|
[673b0d8] | 21 |
|
---|
[81fd230] | 22 | <segmentedlist>
|
---|
[45992ae] | 23 | <segtitle>&dependencies;</segtitle>
|
---|
[81fd230] | 24 | <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
|
---|
| 25 | GCC, Gettext, Glibc, Grep, Make, Ncurses, and Sed</seg></seglistitem>
|
---|
| 26 | </segmentedlist>
|
---|
[a001133] | 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 |
|
---|
[32bebf0] | 36 | <para>The meaning of the configure options:</para>
|
---|
[81fd230] | 37 |
|
---|
| 38 | <variablelist>
|
---|
| 39 | <varlistentry>
|
---|
| 40 | <term><parameter>--exec-prefix=""</parameter></term>
|
---|
[aabd480] | 41 | <listitem><para>This ensures that the Psmisc binaries will install into
|
---|
| 42 | <filename class="directory">/bin</filename> instead of <filename
|
---|
| 43 | 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>
|
---|
[81fd230] | 46 | </varlistentry>
|
---|
| 47 | </variablelist>
|
---|
| 48 |
|
---|
[73aedd1d] | 49 | <para>Compile the package:</para>
|
---|
| 50 |
|
---|
| 51 | <screen><userinput>make</userinput></screen>
|
---|
| 52 |
|
---|
[81fd230] | 53 | <para>Install the package:</para>
|
---|
[73aedd1d] | 54 |
|
---|
| 55 | <screen><userinput>make install</userinput></screen>
|
---|
| 56 |
|
---|
[81fd230] | 57 | <para>There is no reason for the <command>pstree</command> and
|
---|
| 58 | <command>pstree.x11</command> programs to reside in <filename
|
---|
| 59 | class="directory">/bin</filename>. Therefore, move them to <filename
|
---|
[9e34c5f] | 60 | class="directory">/usr/bin</filename>:</para>
|
---|
[10e1008] | 61 |
|
---|
[9e34c5f] | 62 | <screen><userinput>mv /bin/pstree* /usr/bin</userinput></screen>
|
---|
[10e1008] | 63 |
|
---|
[81fd230] | 64 | <para>By default, Psmisc's <command>pidof</command> program is not
|
---|
| 65 | installed. This usually is not a problem because it is installed later
|
---|
| 66 | in the Sysvinit package, which provides a better
|
---|
| 67 | <command>pidof</command> program. If Sysvinit will not be used for a
|
---|
| 68 | particular system, complete the installation of Psmisc by creating the
|
---|
| 69 | following symlink:</para>
|
---|
[73aedd1d] | 70 |
|
---|
| 71 | <screen><userinput>ln -s killall /bin/pidof</userinput></screen>
|
---|
| 72 |
|
---|
| 73 | </sect2>
|
---|
[6370fa6] | 74 |
|
---|
[5888299] | 75 |
|
---|
[c6cb3aa] | 76 | <sect2 id="contents-psmisc" role="content"><title>Contents of Psmisc</title>
|
---|
[673b0d8] | 77 |
|
---|
[81fd230] | 78 | <segmentedlist>
|
---|
| 79 | <segtitle>Installed programs</segtitle>
|
---|
| 80 | <seglistitem><seg>fuser, killall, pstree, and pstree.x11 (link to pstree)</seg></seglistitem>
|
---|
| 81 | </segmentedlist>
|
---|
| 82 |
|
---|
| 83 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 84 | <?dbfo list-presentation="list"?>
|
---|
[8f97096] | 85 | <?dbhtml list-presentation="table"?>
|
---|
[81fd230] | 86 |
|
---|
| 87 | <varlistentry id="fuser">
|
---|
| 88 | <term><command>fuser</command></term>
|
---|
| 89 | <listitem>
|
---|
| 90 | <para>Reports the Process IDs (PIDs) of processes that use the given files or file systems</para>
|
---|
| 91 | <indexterm zone="ch-system-psmisc fuser"><primary sortas="b-fuser">fuser</primary></indexterm>
|
---|
| 92 | </listitem>
|
---|
| 93 | </varlistentry>
|
---|
| 94 |
|
---|
| 95 | <varlistentry id="killall">
|
---|
| 96 | <term><command>killall</command></term>
|
---|
| 97 | <listitem>
|
---|
| 98 | <para>Kills processes by name; it sends a signal to all processes
|
---|
| 99 | running any of the given commands</para>
|
---|
| 100 | <indexterm zone="ch-system-psmisc killall"><primary sortas="b-killall">killall</primary></indexterm>
|
---|
| 101 | </listitem>
|
---|
| 102 | </varlistentry>
|
---|
| 103 |
|
---|
| 104 | <varlistentry id="pstree">
|
---|
| 105 | <term><command>pstree</command></term>
|
---|
| 106 | <listitem>
|
---|
| 107 | <para>Displays running processes as a tree</para>
|
---|
| 108 | <indexterm zone="ch-system-psmisc pstree"><primary sortas="b-pstree">pstree</primary></indexterm>
|
---|
| 109 | </listitem>
|
---|
| 110 | </varlistentry>
|
---|
| 111 |
|
---|
| 112 | <varlistentry id="pstree.x11">
|
---|
| 113 | <term><command>pstree.x11</command></term>
|
---|
| 114 | <listitem>
|
---|
| 115 | <para>Same as <command>pstree</command>, except that it waits for confirmation before exiting</para>
|
---|
| 116 | <indexterm zone="ch-system-psmisc pstree.x11"><primary sortas="b-pstree.x11">pstree.x11</primary></indexterm>
|
---|
| 117 | </listitem>
|
---|
| 118 | </varlistentry>
|
---|
| 119 | </variablelist>
|
---|
[673b0d8] | 120 |
|
---|
| 121 | </sect2>
|
---|
| 122 |
|
---|
| 123 | </sect1>
|
---|
[81fd230] | 124 |
|
---|