psmisc.xml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.4/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>0.1 SBU</seg>
  22. <seg>1.7 MB</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, pstree, and pstree.x11 (link to pstree)</seg>
  67. </seglistitem>
  68. </segmentedlist>
  69. <variablelist>
  70. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  71. <?dbfo list-presentation="list"?>
  72. <?dbhtml list-presentation="table"?>
  73. <varlistentry id="fuser">
  74. <term><command>fuser</command></term>
  75. <listitem>
  76. <para>Reports the Process IDs (PIDs) of processes that use the given
  77. files or file systems</para>
  78. <indexterm zone="ch-system-psmisc fuser">
  79. <primary sortas="b-fuser">fuser</primary>
  80. </indexterm>
  81. </listitem>
  82. </varlistentry>
  83. <varlistentry id="killall">
  84. <term><command>killall</command></term>
  85. <listitem>
  86. <para>Kills processes by name; it sends a signal to all processes
  87. running any of the given commands</para>
  88. <indexterm zone="ch-system-psmisc killall">
  89. <primary sortas="b-killall">killall</primary>
  90. </indexterm>
  91. </listitem>
  92. </varlistentry>
  93. <varlistentry id="oldfuser">
  94. <term><command>oldfuser</command></term>
  95. <listitem>
  96. <para>Reports the Process IDs (PIDs) of processes that use the given
  97. files or file systems</para>
  98. <indexterm zone="ch-system-psmisc oldfuser">
  99. <primary sortas="b-oldfuser">oldfuser</primary>
  100. </indexterm>
  101. </listitem>
  102. </varlistentry>
  103. <varlistentry id="pstree">
  104. <term><command>pstree</command></term>
  105. <listitem>
  106. <para>Displays running processes as a tree</para>
  107. <indexterm zone="ch-system-psmisc pstree">
  108. <primary sortas="b-pstree">pstree</primary>
  109. </indexterm>
  110. </listitem>
  111. </varlistentry>
  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
  116. confirmation before exiting</para>
  117. <indexterm zone="ch-system-psmisc pstree.x11">
  118. <primary sortas="b-pstree.x11">pstree.x11</primary>
  119. </indexterm>
  120. </listitem>
  121. </varlistentry>
  122. </variablelist>
  123. </sect2>
  124. </sect1>