psmisc.xml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <?xml version="1.0" encoding="UTF-8"?>
  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>Psmisc 软件包包含显示正在运行的进程信息的程序。</para>
  21. <segmentedlist>
  22. <segtitle>&buildtime;</segtitle>
  23. <segtitle>&diskspace;</segtitle>
  24. <seglistitem>
  25. <seg>&psmisc-ch6-sbu;</seg>
  26. <seg>&psmisc-ch6-du;</seg>
  27. </seglistitem>
  28. </segmentedlist>
  29. </sect2>
  30. <sect2 role="installation">
  31. <title>安装 Psmisc</title>
  32. <para>准备安装 Psmisc:</para>
  33. <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
  34. <para>编译该软件包:</para>
  35. <screen><userinput remap="make">make</userinput></screen>
  36. <para>该软件包不包含测试套件。</para>
  37. <para>安装该软件包:</para>
  38. <screen><userinput remap="install">make install</userinput></screen>
  39. <para>最后,移动 <command>killall</command> 和
  40. <command>fuser</command> 到 FHS 指定的位置:
  41. </para>
  42. <screen><userinput remap="install">mv -v /usr/bin/fuser /bin
  43. mv -v /usr/bin/killall /bin</userinput></screen>
  44. </sect2>
  45. <sect2 id="contents-psmisc" role="content">
  46. <title>Psmisc 的内容</title>
  47. <segmentedlist>
  48. <segtitle>安装的程序</segtitle>
  49. <seglistitem>
  50. <seg>fuser, killall, peekfd, prtstat, pstree, 以及 pstree.x11 (到 pstree 的链接)</seg>
  51. </seglistitem>
  52. </segmentedlist>
  53. <variablelist>
  54. <bridgehead renderas="sect3">简要描述</bridgehead>
  55. <?dbfo list-presentation="list"?>
  56. <?dbhtml list-presentation="table"?>
  57. <varlistentry id="fuser">
  58. <term><command>fuser</command></term>
  59. <listitem>
  60. <para>报告使用给定文件或文件系统的进程 ID (PID)</para>
  61. <indexterm zone="ch-system-psmisc fuser">
  62. <primary sortas="b-fuser">fuser</primary>
  63. </indexterm>
  64. </listitem>
  65. </varlistentry>
  66. <varlistentry id="killall">
  67. <term><command>killall</command></term>
  68. <listitem>
  69. <para>根据名称杀死进程;它向所有运行给定命令的进程发送信号</para>
  70. <indexterm zone="ch-system-psmisc killall">
  71. <primary sortas="b-killall">killall</primary>
  72. </indexterm>
  73. </listitem>
  74. </varlistentry>
  75. <varlistentry id="peekfd">
  76. <term><command>peekfd</command></term>
  77. <listitem>
  78. <para>根据给定 PID,查看正在运行进程的文件描述符</para>
  79. <indexterm zone="ch-system-psmisc peekfd">
  80. <primary sortas="b-peekfd">peekfd</primary>
  81. </indexterm>
  82. </listitem>
  83. </varlistentry>
  84. <varlistentry id="prtstat">
  85. <term><command>prtstat</command></term>
  86. <listitem>
  87. <para>打印某个进程的信息</para>
  88. <indexterm zone="ch-system-psmisc prtstat">
  89. <primary sortas="b-prtstat">prtstat</primary>
  90. </indexterm>
  91. </listitem>
  92. </varlistentry>
  93. <varlistentry id="pstree">
  94. <term><command>pstree</command></term>
  95. <listitem>
  96. <para>以树形格式列出正在运行的进程</para>
  97. <indexterm zone="ch-system-psmisc pstree">
  98. <primary sortas="b-pstree">pstree</primary>
  99. </indexterm>
  100. </listitem>
  101. </varlistentry>
  102. <varlistentry id="pstree.x11">
  103. <term><command>pstree.x11</command></term>
  104. <listitem>
  105. <para>除了在退出前等待用户确认外,
  106. 和 <command>pstree</command> 相同</para>
  107. <indexterm zone="ch-system-psmisc pstree.x11">
  108. <primary sortas="b-pstree.x11">pstree.x11</primary>
  109. </indexterm>
  110. </listitem>
  111. </varlistentry>
  112. </variablelist>
  113. </sect2>
  114. </sect1>