OSDN Git Service

794846731eccea6a9761613c9781329421c076b8
[linuxjf/JF.git] / docs / LFS-BOOK / chapter06 / psmisc.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4   <head>
5     <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" />
6     <title>
7       6.54. Psmisc-22.13
8     </title>
9     <link rel="stylesheet" href="../stylesheets/lfs.css" type="text/css" />
10     <meta name="generator" content="DocBook XSL Stylesheets V1.73.2" />
11     <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
12     "text/css" media="print" />
13   </head>
14   <body class="lfs" id="lfs-6.8">
15     <div class="navheader">
16       <h4>
17         Linux From Scratch - Version 6.8
18       </h4>
19       <h3>
20         第6章 基本的なソフトウェアのインストール
21       </h3>
22       <ul>
23         <li class="prev">
24           <a accesskey="p" href="patch.html" title="Patch-2.6.1">前のページ</a>
25           <p>
26             Patch-2.6.1
27           </p>
28         </li>
29         <li class="next">
30           <a accesskey="n" href="shadow.html" title=
31           "Shadow-4.1.4.3">次のページ</a>
32           <p>
33             Shadow-4.1.4.3
34           </p>
35         </li>
36         <li class="up">
37           <a accesskey="u" href="chapter06.html" title=
38           "第6章 基本的なソフトウェアのインストール">上に戻る</a>
39         </li>
40         <li class="home">
41           <a accesskey="h" href="../index.html" title=
42           "Linux From Scratch - Version 6.8">ホーム</a>
43         </li>
44       </ul>
45     </div>
46     <div class="wrap" lang="ja" xml:lang="ja">
47       <h1 class="sect1">
48         <a id="ch-system-psmisc" name="ch-system-psmisc"></a>6.54.
49         Psmisc-22.13
50       </h1>
51       <div class="package" lang="ja" xml:lang="ja">
52         <p>
53           Psmisc パッケージは稼動中プロセスの情報表示を行うプログラムを提供します。
54         </p>
55         <div class="segmentedlist">
56           <div class="seglistitem">
57             <div class="seg">
58               <strong class="segtitle">概算ビルド時間:</strong> <span class=
59               "segbody">0.1 SBU 以下</span>
60             </div>
61             <div class="seg">
62               <strong class="segtitle">必要ディスク容量:</strong> <span class=
63               "segbody">2.5 MB</span>
64             </div>
65           </div>
66         </div>
67       </div>
68       <div class="installation" lang="ja" xml:lang="ja">
69         <h2 class="sect2">
70           6.54.1. Psmisc のインストール
71         </h2>
72         <p>
73           Psmisc をコンパイルするための準備をします。
74         </p>
75         <pre class="userinput">
76 <kbd class="command">./configure --prefix=/usr</kbd>
77 </pre>
78         <p>
79           パッケージをコンパイルします。
80         </p>
81         <pre class="userinput">
82 <kbd class="command">make</kbd>
83 </pre>
84         <p>
85           このパッケージにテストスイートはありません。
86         </p>
87         <p>
88           パッケージをインストールします。
89         </p>
90         <pre class="userinput">
91 <kbd class="command">make install</kbd>
92 </pre>
93         <p>
94           <span class="command"><strong>killall</strong></span> プログラムと
95           <span class="command"><strong>fuser</strong></span> プログラムを、FHS
96           が規定しているディレクトリに移動します。
97         </p>
98         <pre class="userinput">
99 <kbd class="command">mv -v /usr/bin/fuser /bin
100 mv -v /usr/bin/killall /bin</kbd>
101 </pre>
102       </div>
103       <div class="content" lang="ja" xml:lang="ja">
104         <h2 class="sect2">
105           <a id="contents-psmisc" name="contents-psmisc"></a>6.54.2. Psmisc
106           の構成
107         </h2>
108         <div class="segmentedlist">
109           <div class="seglistitem">
110             <div class="seg">
111               <strong class="segtitle">インストールプログラム:</strong> <span class=
112               "segbody">fuser, killall, peekfd, prtstat, pstree, pstree.x11
113               (pstree へのリンク)</span>
114             </div>
115           </div>
116         </div>
117         <div class="variablelist">
118           <h3>
119             概略説明
120           </h3>
121           <table border="0">
122             <col align="left" valign="top" />
123             <tbody>
124               <tr>
125                 <td>
126                   <p>
127                     <a id="fuser" name="fuser"></a><span class=
128                     "term"><span class=
129                     "command"><strong>fuser</strong></span></span>
130                   </p>
131                 </td>
132                 <td>
133                   <p>
134                     指定されたファイルまたはファイルシステムを利用しているプロセスのプロセス ID (PID) を表示します。
135                   </p>
136                 </td>
137               </tr>
138               <tr>
139                 <td>
140                   <p>
141                     <a id="killall" name="killall"></a><span class=
142                     "term"><span class=
143                     "command"><strong>killall</strong></span></span>
144                   </p>
145                 </td>
146                 <td>
147                   <p>
148                     プロセス名を用いてそのプロセスを終了 (kill) させます。
149                     指定されたコマンドを起動しているすべてのプロセスに対してシグナルが送信されます。
150                   </p>
151                 </td>
152               </tr>
153               <tr>
154                 <td>
155                   <p>
156                     <a id="peekfd" name="peekfd"></a><span class=
157                     "term"><span class=
158                     "command"><strong>peekfd</strong></span></span>
159                   </p>
160                 </td>
161                 <td>
162                   <p>
163                     PID を指定することによって、稼動中のそのプロセスのファイルディスクリプタを調べます。
164                   </p>
165                 </td>
166               </tr>
167               <tr>
168                 <td>
169                   <p>
170                     <a id="prtstat" name="prtstat"></a><span class=
171                     "term"><span class=
172                     "command"><strong>prtstat</strong></span></span>
173                   </p>
174                 </td>
175                 <td>
176                   <p>
177                     プロセスに関する情報を表示します。
178                   </p>
179                 </td>
180               </tr>
181               <tr>
182                 <td>
183                   <p>
184                     <a id="pstree" name="pstree"></a><span class=
185                     "term"><span class=
186                     "command"><strong>pstree</strong></span></span>
187                   </p>
188                 </td>
189                 <td>
190                   <p>
191                     稼働中のプロセスをツリー形式で表示します。
192                   </p>
193                 </td>
194               </tr>
195               <tr>
196                 <td>
197                   <p>
198                     <a id="pstree.x11" name="pstree.x11"></a><span class=
199                     "term"><span class=
200                     "command"><strong>pstree.x11</strong></span></span>
201                   </p>
202                 </td>
203                 <td>
204                   <p>
205                     <span class="command"><strong>pstree</strong></span>
206                     と同じです。 ただし終了時には確認画面が表示されます。
207                   </p>
208                 </td>
209               </tr>
210             </tbody>
211           </table>
212         </div>
213       </div>
214     </div>
215     <div class="navfooter">
216       <ul>
217         <li class="prev">
218           <a accesskey="p" href="patch.html" title="Patch-2.6.1">前のページ</a>
219           <p>
220             Patch-2.6.1
221           </p>
222         </li>
223         <li class="next">
224           <a accesskey="n" href="shadow.html" title=
225           "Shadow-4.1.4.3">次のページ</a>
226           <p>
227             Shadow-4.1.4.3
228           </p>
229         </li>
230         <li class="up">
231           <a accesskey="u" href="chapter06.html" title=
232           "第6章 基本的なソフトウェアのインストール">上に戻る</a>
233         </li>
234         <li class="home">
235           <a accesskey="h" href="../index.html" title=
236           "Linux From Scratch - Version 6.8">ホーム</a>
237         </li>
238       </ul>
239     </div>
240   </body>
241 </html>