OSDN Git Service

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