123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
- <!ENTITY % general-entities SYSTEM "../general.ent">
- %general-entities;
- ]>
- <sect1 id="ch-system-psmisc" role="wrap">
- <?dbhtml filename="psmisc.html"?>
- <sect1info condition="script">
- <productname>psmisc</productname>
- <productnumber>&psmisc-version;</productnumber>
- <address>&psmisc-url;</address>
- </sect1info>
- <title>Psmisc-&psmisc-version;</title>
- <indexterm zone="ch-system-psmisc">
- <primary sortas="a-Psmisc">Psmisc</primary>
- </indexterm>
- <sect2 role="package">
- <title/>
- <para>Psmisc 软件包包含显示正在运行的进程信息的程序。</para>
- <segmentedlist>
- <segtitle>&buildtime;</segtitle>
- <segtitle>&diskspace;</segtitle>
- <seglistitem>
- <seg>&psmisc-ch6-sbu;</seg>
- <seg>&psmisc-ch6-du;</seg>
- </seglistitem>
- </segmentedlist>
- </sect2>
- <sect2 role="installation">
- <title>安装 Psmisc</title>
- <para>准备安装 Psmisc:</para>
- <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
- <para>编译该软件包:</para>
- <screen><userinput remap="make">make</userinput></screen>
- <para>该软件包不包含测试套件。</para>
- <para>安装该软件包:</para>
- <screen><userinput remap="install">make install</userinput></screen>
- <para>最后,移动 <command>killall</command> 和
- <command>fuser</command> 到 FHS 指定的位置:
- </para>
- <screen><userinput remap="install">mv -v /usr/bin/fuser /bin
- mv -v /usr/bin/killall /bin</userinput></screen>
- </sect2>
- <sect2 id="contents-psmisc" role="content">
- <title>Psmisc 的内容</title>
- <segmentedlist>
- <segtitle>安装的程序</segtitle>
- <seglistitem>
- <seg>fuser, killall, peekfd, prtstat, pslog, pstree, 以及 pstree.x11 (到 pstree 的链接)</seg>
- </seglistitem>
- </segmentedlist>
- <variablelist>
- <bridgehead renderas="sect3">简要描述</bridgehead>
- <?dbfo list-presentation="list"?>
- <?dbhtml list-presentation="table"?>
- <varlistentry id="fuser">
- <term><command>fuser</command></term>
- <listitem>
- <para>报告使用给定文件或文件系统的进程 ID (PID)</para>
- <indexterm zone="ch-system-psmisc fuser">
- <primary sortas="b-fuser">fuser</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="killall">
- <term><command>killall</command></term>
- <listitem>
- <para>根据名称杀死进程;它向所有运行给定命令的进程发送信号</para>
- <indexterm zone="ch-system-psmisc killall">
- <primary sortas="b-killall">killall</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="peekfd">
- <term><command>peekfd</command></term>
- <listitem>
- <para>根据给定 PID,查看正在运行进程的文件描述符</para>
- <indexterm zone="ch-system-psmisc peekfd">
- <primary sortas="b-peekfd">peekfd</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="prtstat">
- <term><command>prtstat</command></term>
- <listitem>
- <para>打印某个进程的信息</para>
- <indexterm zone="ch-system-psmisc prtstat">
- <primary sortas="b-prtstat">prtstat</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="pslog">
- <term><command>pslog</command></term>
- <listitem>
- <para>报告某个进程当前使用的日志路径</para>
- <indexterm zone="ch-system-psmisc pslog">
- <primary sortas="b-pslog">pslog</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="pstree">
- <term><command>pstree</command></term>
- <listitem>
- <para>以树形格式列出正在运行的进程</para>
- <indexterm zone="ch-system-psmisc pstree">
- <primary sortas="b-pstree">pstree</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- <varlistentry id="pstree.x11">
- <term><command>pstree.x11</command></term>
- <listitem>
- <para>除了在退出前等待用户确认外,
- 和 <command>pstree</command> 相同</para>
- <indexterm zone="ch-system-psmisc pstree.x11">
- <primary sortas="b-pstree.x11">pstree.x11</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- </variablelist>
- </sect2>
- </sect1>
|