psmisc.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="ch-system-psmisc" role="wrap">
  7. <title>Psmisc-&psmisc-version;</title>
  8. <?dbhtml filename="psmisc.html"?>
  9. <indexterm zone="ch-system-psmisc"><primary sortas="a-Psmisc">Psmisc</primary></indexterm>
  10. <sect2 role="package"><title/>
  11. <para>The Psmisc package contains programs for displaying information on
  12. processes.</para>
  13. <segmentedlist>
  14. <segtitle>&buildtime;</segtitle>
  15. <segtitle>&diskspace;</segtitle>
  16. <seglistitem><seg>0.1 SBU</seg><seg>2.2 MB</seg></seglistitem>
  17. </segmentedlist>
  18. <segmentedlist>
  19. <segtitle>&dependencies;</segtitle>
  20. <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
  21. GCC, Gettext, Glibc, Grep, Make, Ncurses, and Sed</seg></seglistitem>
  22. </segmentedlist>
  23. </sect2>
  24. <sect2 role="installation">
  25. <title>Installation of Psmisc</title>
  26. <para>Prepare Psmisc for compilation:</para>
  27. <screen><userinput>./configure --prefix=/usr --exec-prefix=""</userinput></screen>
  28. <para>The meaning of the configure option:</para>
  29. <variablelist>
  30. <varlistentry>
  31. <term><parameter>--exec-prefix=""</parameter></term>
  32. <listitem><para>This causes the binaries to be installed in <filename
  33. class="directory">/bin</filename> instead of <filename
  34. class="directory">/usr/bin</filename>. Because the Psmisc programs are
  35. often used in bootscripts, they should be available when the <filename
  36. class="directory">/usr</filename> file system is not
  37. mounted.</para></listitem>
  38. </varlistentry>
  39. </variablelist>
  40. <para>Compile the package:</para>
  41. <screen><userinput>make</userinput></screen>
  42. <para>Install the package:</para>
  43. <screen><userinput>make install</userinput></screen>
  44. <para>There is no reason for the <command>pstree</command> and
  45. <command>pstree.x11</command> programs to reside in <filename
  46. class="directory">/bin</filename>. Therefore, move them to <filename
  47. class="directory">/usr/bin</filename>. Also, there is no need for
  48. <command>pstree.x11</command> to exist as a separate program. Make it
  49. a symbolic link to <command>pstree</command> instead:</para>
  50. <screen><userinput>mv /bin/pstree* /usr/bin
  51. ln -sf pstree /usr/bin/pstree.x11</userinput></screen>
  52. <para>By default, Psmisc's <command>pidof</command> program is not
  53. installed. This usually is not a problem because it is installed later
  54. in the Sysvinit package, which provides a better
  55. <command>pidof</command> program. If Sysvinit will not be used for a
  56. particular system, complete the installation of Psmisc by creating the
  57. following symlink:</para>
  58. <screen><userinput>ln -s killall /bin/pidof</userinput></screen>
  59. </sect2>
  60. <sect2 id="contents-psmisc" role="content"><title>Contents of Psmisc</title>
  61. <segmentedlist>
  62. <segtitle>Installed programs</segtitle>
  63. <seglistitem><seg>fuser, killall, pstree, and pstree.x11 (link to pstree)</seg></seglistitem>
  64. </segmentedlist>
  65. <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
  66. <?dbfo list-presentation="list"?>
  67. <?dbhtml list-presentation="table"?>
  68. <varlistentry id="fuser">
  69. <term><command>fuser</command></term>
  70. <listitem>
  71. <para>Reports the Process IDs (PIDs) of processes that use the given files or file systems</para>
  72. <indexterm zone="ch-system-psmisc fuser"><primary sortas="b-fuser">fuser</primary></indexterm>
  73. </listitem>
  74. </varlistentry>
  75. <varlistentry id="killall">
  76. <term><command>killall</command></term>
  77. <listitem>
  78. <para>Kills processes by name; it sends a signal to all processes
  79. running any of the given commands</para>
  80. <indexterm zone="ch-system-psmisc killall"><primary sortas="b-killall">killall</primary></indexterm>
  81. </listitem>
  82. </varlistentry>
  83. <varlistentry id="pstree">
  84. <term><command>pstree</command></term>
  85. <listitem>
  86. <para>Displays running processes as a tree</para>
  87. <indexterm zone="ch-system-psmisc pstree"><primary sortas="b-pstree">pstree</primary></indexterm>
  88. </listitem>
  89. </varlistentry>
  90. <varlistentry id="pstree.x11">
  91. <term><command>pstree.x11</command></term>
  92. <listitem>
  93. <para>Same as <command>pstree</command>, except that it waits for confirmation before exiting</para>
  94. <indexterm zone="ch-system-psmisc pstree.x11"><primary sortas="b-pstree.x11">pstree.x11</primary></indexterm>
  95. </listitem>
  96. </varlistentry>
  97. </variablelist>
  98. </sect2>
  99. </sect1>