psmisc.xml 5.4 KB

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