psmisc.xml 5.3 KB

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