psmisc.xml 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  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>Prepare Psmisc for compilation:</para>
  34. <screen><userinput remap="configure">./configure --prefix=/usr --exec-prefix=""</userinput></screen>
  35. <variablelist>
  36. <title>The meaning of the configure options:</title>
  37. <varlistentry>
  38. <term><parameter>--exec-prefix=""</parameter></term>
  39. <listitem>
  40. <para>This ensures that the Psmisc binaries will install into
  41. <filename class="directory">/bin</filename> instead of <filename
  42. class="directory">/usr/bin</filename>. This is the correct location
  43. according to the FHS, because some of the Psmisc binaries are used
  44. by the LFS-Bootscripts package.</para>
  45. </listitem>
  46. </varlistentry>
  47. </variablelist>
  48. <para>Compile the package:</para>
  49. <screen><userinput remap="make">make</userinput></screen>
  50. <para>This package does not come with a test suite.</para>
  51. <para>Install the package:</para>
  52. <screen><userinput remap="install">make install</userinput></screen>
  53. <para>There is no reason for the <command>pstree</command> and
  54. <command>pstree.x11</command> programs to reside in <filename
  55. class="directory">/bin</filename>. Therefore, move them to <filename
  56. class="directory">/usr/bin</filename>:</para>
  57. <screen><userinput remap="install">mv -v /bin/pstree* /usr/bin</userinput></screen>
  58. <para>By default, Psmisc's <command>pidof</command> program is not
  59. installed. This usually is not a problem because it is installed later
  60. in the Sysvinit package, which provides a better
  61. <command>pidof</command> program. If Sysvinit will not be used for a
  62. particular system, complete the installation of Psmisc by creating the
  63. following symlink:</para>
  64. <screen><userinput remap="install">ln -sv killall /bin/pidof</userinput></screen>
  65. </sect2>
  66. <sect2 id="contents-psmisc" role="content">
  67. <title>Contents of Psmisc</title>
  68. <segmentedlist>
  69. <segtitle>Installed programs</segtitle>
  70. <seglistitem>
  71. <seg>fuser, killall, oldfuser, peekfd, pstree, and pstree.x11
  72. (link to pstree)</seg>
  73. </seglistitem>
  74. </segmentedlist>
  75. <variablelist>
  76. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  77. <?dbfo list-presentation="list"?>
  78. <?dbhtml list-presentation="table"?>
  79. <varlistentry id="fuser">
  80. <term><command>fuser</command></term>
  81. <listitem>
  82. <para>Reports the Process IDs (PIDs) of processes that use the given
  83. files or file systems</para>
  84. <indexterm zone="ch-system-psmisc fuser">
  85. <primary sortas="b-fuser">fuser</primary>
  86. </indexterm>
  87. </listitem>
  88. </varlistentry>
  89. <varlistentry id="killall">
  90. <term><command>killall</command></term>
  91. <listitem>
  92. <para>Kills processes by name; it sends a signal to all processes
  93. running any of the given commands</para>
  94. <indexterm zone="ch-system-psmisc killall">
  95. <primary sortas="b-killall">killall</primary>
  96. </indexterm>
  97. </listitem>
  98. </varlistentry>
  99. <varlistentry id="oldfuser">
  100. <term><command>oldfuser</command></term>
  101. <listitem>
  102. <para>Reports the Process IDs (PIDs) of processes that use the given
  103. files or file systems</para>
  104. <indexterm zone="ch-system-psmisc oldfuser">
  105. <primary sortas="b-oldfuser">oldfuser</primary>
  106. </indexterm>
  107. </listitem>
  108. </varlistentry>
  109. <varlistentry id="peekfd">
  110. <term><command>peekfd</command></term>
  111. <listitem>
  112. <para>Peek at file descriptors of a running process, given its
  113. PID</para>
  114. <indexterm zone="ch-system-psmisc peekfd">
  115. <primary sortas="b-peekfd">peekfd</primary>
  116. </indexterm>
  117. </listitem>
  118. </varlistentry>
  119. <varlistentry id="pstree">
  120. <term><command>pstree</command></term>
  121. <listitem>
  122. <para>Displays running processes as a tree</para>
  123. <indexterm zone="ch-system-psmisc pstree">
  124. <primary sortas="b-pstree">pstree</primary>
  125. </indexterm>
  126. </listitem>
  127. </varlistentry>
  128. <varlistentry id="pstree.x11">
  129. <term><command>pstree.x11</command></term>
  130. <listitem>
  131. <para>Same as <command>pstree</command>, except that it waits for
  132. confirmation before exiting</para>
  133. <indexterm zone="ch-system-psmisc pstree.x11">
  134. <primary sortas="b-pstree.x11">pstree.x11</primary>
  135. </indexterm>
  136. </listitem>
  137. </varlistentry>
  138. </variablelist>
  139. </sect2>
  140. </sect1>