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 |
|
---|
8 | <sect1 id="ch-system-psmisc" role="wrap">
|
---|
9 | <?dbhtml filename="psmisc.html"?>
|
---|
10 |
|
---|
11 | <title>Psmisc-&psmisc-version;</title>
|
---|
12 |
|
---|
13 | <indexterm zone="ch-system-psmisc">
|
---|
14 | <primary sortas="a-Psmisc">Psmisc</primary>
|
---|
15 | </indexterm>
|
---|
16 |
|
---|
17 | <sect2 role="package">
|
---|
18 | <title/>
|
---|
19 |
|
---|
20 | <para>The Psmisc package contains programs for displaying information
|
---|
21 | about running processes.</para>
|
---|
22 |
|
---|
23 | </sect2>
|
---|
24 |
|
---|
25 | <sect2 role="installation">
|
---|
26 | <title>Installation of Psmisc</title>
|
---|
27 |
|
---|
28 | <para os="a">Prepare Psmisc for compilation:</para>
|
---|
29 |
|
---|
30 | <screen os="b"><userinput>./configure --prefix=/usr --exec-prefix=""</userinput></screen>
|
---|
31 |
|
---|
32 | <variablelist os="c">
|
---|
33 | <title>The meaning of the configure option:</title>
|
---|
34 |
|
---|
35 | <varlistentry>
|
---|
36 | <term><parameter>--exec-prefix=""</parameter></term>
|
---|
37 | <listitem>
|
---|
38 | <para>This ensures that the Psmisc binaries will install into
|
---|
39 | <filename class="directory">/bin</filename> instead of
|
---|
40 | <filename class="directory">/usr/bin</filename>. This is the
|
---|
41 | correct location according to the FHS, because some of the Psmisc
|
---|
42 | binaries are used by Systemd.</para>
|
---|
43 | </listitem>
|
---|
44 | </varlistentry>
|
---|
45 | </variablelist>
|
---|
46 |
|
---|
47 | <para os="d">Compile the package:</para>
|
---|
48 |
|
---|
49 | <screen os="e"><userinput>make</userinput></screen>
|
---|
50 |
|
---|
51 | <para os="f">This package does not come with a test suite.</para>
|
---|
52 |
|
---|
53 | <para os="g">Install the package:</para>
|
---|
54 |
|
---|
55 | <screen os="h"><userinput>make install</userinput></screen>
|
---|
56 |
|
---|
57 | <para os="i">There is no reason for the <command>pstree</command> and
|
---|
58 | <command>pstree.x11</command> programs to reside in <filename
|
---|
59 | class="directory">/bin</filename>. Therefore, move them to <filename
|
---|
60 | class="directory">/usr/bin</filename>:</para>
|
---|
61 |
|
---|
62 | <screen os="j"><userinput>mv -v /bin/pstree* /usr/bin</userinput></screen>
|
---|
63 |
|
---|
64 | </sect2>
|
---|
65 |
|
---|
66 | <sect2 id="contents-psmisc" role="content">
|
---|
67 | <title>Contents of Psmisc</title>
|
---|
68 |
|
---|
69 | <segmentedlist>
|
---|
70 | <segtitle>Installed programs</segtitle>
|
---|
71 |
|
---|
72 | <seglistitem>
|
---|
73 | <seg>fuser, killall, peekfd, prtstat, pstree, and pstree.x11
|
---|
74 | (link to pstree)</seg>
|
---|
75 | </seglistitem>
|
---|
76 | </segmentedlist>
|
---|
77 |
|
---|
78 | <variablelist>
|
---|
79 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
80 | <?dbfo list-presentation="list"?>
|
---|
81 | <?dbhtml list-presentation="table"?>
|
---|
82 |
|
---|
83 | <varlistentry id="fuser">
|
---|
84 | <term><command>fuser</command></term>
|
---|
85 | <listitem>
|
---|
86 | <para>Reports the Process IDs (PIDs) of processes that use the given
|
---|
87 | files or file systems</para>
|
---|
88 | <indexterm zone="ch-system-psmisc fuser">
|
---|
89 | <primary sortas="b-fuser">fuser</primary>
|
---|
90 | </indexterm>
|
---|
91 | </listitem>
|
---|
92 | </varlistentry>
|
---|
93 |
|
---|
94 | <varlistentry id="killall">
|
---|
95 | <term><command>killall</command></term>
|
---|
96 | <listitem>
|
---|
97 | <para>Kills processes by name; it sends a signal to all processes
|
---|
98 | running any of the given commands</para>
|
---|
99 | <indexterm zone="ch-system-psmisc killall">
|
---|
100 | <primary sortas="b-killall">killall</primary>
|
---|
101 | </indexterm>
|
---|
102 | </listitem>
|
---|
103 | </varlistentry>
|
---|
104 |
|
---|
105 | <varlistentry id="peekfd">
|
---|
106 | <term><command>peekfd</command></term>
|
---|
107 | <listitem>
|
---|
108 | <para> Peeks at file descriptors of running processes</para>
|
---|
109 | <indexterm zone="ch-system-psmisc peekfd">
|
---|
110 | <primary sortas="b-peekfd">peekfd</primary>
|
---|
111 | </indexterm>
|
---|
112 | </listitem>
|
---|
113 | </varlistentry>
|
---|
114 |
|
---|
115 | <varlistentry id="prtstat">
|
---|
116 | <term><command>prtstat</command></term>
|
---|
117 | <listitem>
|
---|
118 | <para>Prints information about a process</para>
|
---|
119 | <indexterm zone="ch-system-psmisc prtstat">
|
---|
120 | <primary sortas="b-prtstat">prtstat</primary>
|
---|
121 | </indexterm>
|
---|
122 | </listitem>
|
---|
123 | </varlistentry>
|
---|
124 |
|
---|
125 | <varlistentry id="pstree">
|
---|
126 | <term><command>pstree</command></term>
|
---|
127 | <listitem>
|
---|
128 | <para>Displays running processes as a tree</para>
|
---|
129 | <indexterm zone="ch-system-psmisc pstree">
|
---|
130 | <primary sortas="b-pstree">pstree</primary>
|
---|
131 | </indexterm>
|
---|
132 | </listitem>
|
---|
133 | </varlistentry>
|
---|
134 |
|
---|
135 | <varlistentry id="pstree.x11">
|
---|
136 | <term><command>pstree.x11</command></term>
|
---|
137 | <listitem>
|
---|
138 | <para>Same as <command>pstree</command>, except that it waits for
|
---|
139 | confirmation before exiting</para>
|
---|
140 | <indexterm zone="ch-system-psmisc pstree.x11">
|
---|
141 | <primary sortas="b-pstree.x11">pstree.x11</primary>
|
---|
142 | </indexterm>
|
---|
143 | </listitem>
|
---|
144 | </varlistentry>
|
---|
145 |
|
---|
146 | </variablelist>
|
---|
147 |
|
---|
148 | </sect2>
|
---|
149 |
|
---|
150 | </sect1>
|
---|