psmisc.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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. <segmentedlist>
  26. <segtitle>&dependencies;</segtitle>
  27. <seglistitem>
  28. <seg>Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc, Grep,
  29. Make, Ncurses, and Sed</seg>
  30. </seglistitem>
  31. </segmentedlist>
  32. </sect2>
  33. <sect2 role="installation">
  34. <title>Installation of Psmisc</title>
  35. <para>Prepare Psmisc for compilation:</para>
  36. <screen><userinput>./configure --prefix=/usr --exec-prefix=""</userinput></screen>
  37. <variablelist>
  38. <title>The meaning of the configure options:</title>
  39. <varlistentry>
  40. <term><parameter>--exec-prefix=""</parameter></term>
  41. <listitem>
  42. <para>This ensures that the Psmisc binaries will install into
  43. <filename class="directory">/bin</filename> instead of <filename
  44. class="directory">/usr/bin</filename>. This is the correct location
  45. according to the FHS, because some of the Psmisc binaries are used
  46. by the LFS-Bootscripts package.</para>
  47. </listitem>
  48. </varlistentry>
  49. </variablelist>
  50. <para>Compile the package:</para>
  51. <screen><userinput>make</userinput></screen>
  52. <para>This package does not come with a test suite.</para>
  53. <para>Install the package:</para>
  54. <screen><userinput>make install</userinput></screen>
  55. <para>There is no reason for the <command>pstree</command> and
  56. <command>pstree.x11</command> programs to reside in <filename
  57. class="directory">/bin</filename>. Therefore, move them to <filename
  58. class="directory">/usr/bin</filename>:</para>
  59. <screen><userinput>mv -v /bin/pstree* /usr/bin</userinput></screen>
  60. <para>By default, Psmisc's <command>pidof</command> program is not
  61. installed. This usually is not a problem because it is installed later
  62. in the Sysvinit package, which provides a better
  63. <command>pidof</command> program. If Sysvinit will not be used for a
  64. particular system, complete the installation of Psmisc by creating the
  65. following symlink:</para>
  66. <screen><userinput>ln -sv killall /bin/pidof</userinput></screen>
  67. </sect2>
  68. <sect2 id="contents-psmisc" role="content">
  69. <title>Contents of Psmisc</title>
  70. <segmentedlist>
  71. <segtitle>Installed programs</segtitle>
  72. <seglistitem>
  73. <seg>fuser, killall, pstree, and pstree.x11 (link to pstree)</seg>
  74. </seglistitem>
  75. </segmentedlist>
  76. <variablelist>
  77. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  78. <?dbfo list-presentation="list"?>
  79. <?dbhtml list-presentation="table"?>
  80. <varlistentry id="fuser">
  81. <term><command>fuser</command></term>
  82. <listitem>
  83. <para>Reports the Process IDs (PIDs) of processes that use the given
  84. files or file systems</para>
  85. <indexterm zone="ch-system-psmisc fuser">
  86. <primary sortas="b-fuser">fuser</primary>
  87. </indexterm>
  88. </listitem>
  89. </varlistentry>
  90. <varlistentry id="killall">
  91. <term><command>killall</command></term>
  92. <listitem>
  93. <para>Kills processes by name; it sends a signal to all processes
  94. running any of the given commands</para>
  95. <indexterm zone="ch-system-psmisc killall">
  96. <primary sortas="b-killall">killall</primary>
  97. </indexterm>
  98. </listitem>
  99. </varlistentry>
  100. <varlistentry id="oldfuser">
  101. <term><command>oldfuser</command></term>
  102. <listitem>
  103. <para>Reports the Process IDs (PIDs) of processes that use the given
  104. files or file systems</para>
  105. <indexterm zone="ch-system-psmisc oldfuser">
  106. <primary sortas="b-oldfuser">oldfuser</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>