- Merge the following from the English version:
r18248 -> r18284 head/ja_JP.eucJP/books/handbook/basics/chapter.xml Submitted by: Yuta MASUMOTO <owata _at_ club dot kyutech dot ac dot jp>
This commit is contained in:
parent
211922b979
commit
cd004386de
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=43476
1 changed files with 39 additions and 20 deletions
|
@ -3,7 +3,7 @@
|
||||||
The FreeBSD Documentation Project
|
The FreeBSD Documentation Project
|
||||||
The FreeBSD Japanese Documentation Project
|
The FreeBSD Japanese Documentation Project
|
||||||
|
|
||||||
Original revision: r18248
|
Original revision: r18284
|
||||||
$FreeBSD$
|
$FreeBSD$
|
||||||
-->
|
-->
|
||||||
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0" xml:id="basics">
|
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0" xml:id="basics">
|
||||||
|
@ -86,7 +86,7 @@
|
||||||
システムが管理する資源はすべて、
|
システムが管理する資源はすべて、
|
||||||
誰がその資源を読み・書き・実行できるかを支配する、
|
誰がその資源を読み・書き・実行できるかを支配する、
|
||||||
一組の許可属性を持っています。
|
一組の許可属性を持っています。
|
||||||
これらの許可属性は 3 つの部分からなる 2 桁の 8 進数の形で格納されています。
|
これらの許可属性は 3 つの部分からなる 3 桁の 8 進数の形で格納されています。
|
||||||
それはそのファイルの所有者 (owner) に対するもの、
|
それはそのファイルの所有者 (owner) に対するもの、
|
||||||
そのファイルが所属するグループ (group) に対するもの、
|
そのファイルが所属するグループ (group) に対するもの、
|
||||||
その他 (others) に対するものの 3 つです。
|
その他 (others) に対するものの 3 つです。
|
||||||
|
@ -165,8 +165,18 @@
|
||||||
<para>&man.ls.1; に対してコマンドライン引数 <option>-l</option> を使うと、
|
<para>&man.ls.1; に対してコマンドライン引数 <option>-l</option> を使うと、
|
||||||
詳細なディレクトリリストを見ることができ、
|
詳細なディレクトリリストを見ることができ、
|
||||||
ファイルの所有者、グループ、その他への許可属性を示す欄があるのがわかります。
|
ファイルの所有者、グループ、その他への許可属性を示す欄があるのがわかります。
|
||||||
次に示すのは、<command>ls -l</command>
|
例えば、<command>ls -l</command> を実行して、
|
||||||
の最初の部分だけ抜き出したものです。</para>
|
適当なディレクトリを表示させると以下のようになります。</para>
|
||||||
|
|
||||||
|
<screen>&prompt.user; ls -l
|
||||||
|
total 530
|
||||||
|
-rw-r--r-- 1 root wheel 512 Sep 5 12:31 myfile
|
||||||
|
-rw-r--r-- 1 root wheel 512 Sep 5 12:31 otherfile
|
||||||
|
-rw-r--r-- 1 root wheel 7680 Sep 5 12:31 email.txt
|
||||||
|
...</screen>
|
||||||
|
|
||||||
|
<para>以下に示すのは、
|
||||||
|
<command>ls -l</command> の最初の行を抜き出したものです。</para>
|
||||||
|
|
||||||
<screen>-rw-r--r--</screen>
|
<screen>-rw-r--r--</screen>
|
||||||
|
|
||||||
|
@ -205,7 +215,8 @@
|
||||||
ディレクトリの実行ビットはファイルのそれとは少し違った意味を持ちます。
|
ディレクトリの実行ビットはファイルのそれとは少し違った意味を持ちます。
|
||||||
ディレクトリが実行可能になっているとき、
|
ディレクトリが実行可能になっているとき、
|
||||||
そのディレクトリに移動することができます。
|
そのディレクトリに移動することができます。
|
||||||
つまり、そのディレクトリに <quote>cd</quote> することが可能です。
|
つまり、そのディレクトリに <quote>cd</quote> (change directory)
|
||||||
|
することが可能です。
|
||||||
また、実行可能属性がついているディレクトリでは、
|
また、実行可能属性がついているディレクトリでは、
|
||||||
名前が分かっているファイルにアクセスすることもできます
|
名前が分かっているファイルにアクセスすることもできます
|
||||||
(もちろんそのファイル自体の許可属性によります)。
|
(もちろんそのファイル自体の許可属性によります)。
|
||||||
|
@ -348,11 +359,12 @@
|
||||||
を実行できるようにします。</para>
|
を実行できるようにします。</para>
|
||||||
|
|
||||||
<screen>&prompt.user; <userinput>chmod go-w,a+x <replaceable>FILE</replaceable></userinput></screen>
|
<screen>&prompt.user; <userinput>chmod go-w,a+x <replaceable>FILE</replaceable></userinput></screen>
|
||||||
|
<!--
|
||||||
<para>ほとんどのユーザは気づかないかもしれませんが、
|
<para>ほとんどのユーザは気づかないかもしれませんが、
|
||||||
8 進数の値を用いた属性の変更方法は、
|
8 進数の値を用いた属性の変更方法は、
|
||||||
ファイルに対して許可属性を設定したり割り当てるだけで、
|
ファイルに対して許可属性を設定したり割り当てるだけで、
|
||||||
属性を足したり取り除いたりするというものではありません。</para>
|
属性を足したり取り除いたりするというものではありません。</para>
|
||||||
|
-->
|
||||||
</sect2>
|
</sect2>
|
||||||
</sect1>
|
</sect1>
|
||||||
|
|
||||||
|
@ -1317,7 +1329,7 @@
|
||||||
<term><option>-d</option></term>
|
<term><option>-d</option></term>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>実際にシステムコールする以外の全てのことをします。
|
<para>実際にマウントシステムコールする以外のすべてのことをします。
|
||||||
このオプションは <option>-v</option>
|
このオプションは <option>-v</option>
|
||||||
フラグと組み合わせて使い、
|
フラグと組み合わせて使い、
|
||||||
&man.mount.8; が実際なにをしようとしているのか調べるのに便利です。</para>
|
&man.mount.8; が実際なにをしようとしているのか調べるのに便利です。</para>
|
||||||
|
@ -1465,7 +1477,7 @@
|
||||||
例えば、シェルにコマンドを打ち込んでいるときはシェルがプロセスで、
|
例えば、シェルにコマンドを打ち込んでいるときはシェルがプロセスで、
|
||||||
動かすコマンドもまたどれもプロセスです。
|
動かすコマンドもまたどれもプロセスです。
|
||||||
このようにして起動するプロセスはそれぞれシェルが親プロセスになります。
|
このようにして起動するプロセスはそれぞれシェルが親プロセスになります。
|
||||||
これの例外は <command>init</command> という特別なプロセスです。
|
これの例外は &man.init.8; という特別なプロセスです。
|
||||||
<command>init</command> は常に最初のプロセスなので、
|
<command>init</command> は常に最初のプロセスなので、
|
||||||
PID は必ず 1 になります。
|
PID は必ず 1 になります。
|
||||||
<command>init</command> は FreeBSD
|
<command>init</command> は FreeBSD
|
||||||
|
@ -1473,15 +1485,17 @@
|
||||||
|
|
||||||
<para>&man.ps.1; と &man.top.1; という2つのコマンドが
|
<para>&man.ps.1; と &man.top.1; という2つのコマンドが
|
||||||
システム上のプロセスを確認するために特に便利です。
|
システム上のプロセスを確認するために特に便利です。
|
||||||
&man.ps.1; コマンドは現在動作中のプロセスのリストを見るために使い、
|
<command>ps</command>
|
||||||
|
コマンドは現在動作中のプロセスのリストを見るために使い、
|
||||||
PID やプロセスが使っているメモリの量、
|
PID やプロセスが使っているメモリの量、
|
||||||
どういうコマンドラインで起動されたのか、
|
どういうコマンドラインで起動されたのか、
|
||||||
などを表示させることができます。
|
などを表示させることができます。
|
||||||
&man.top.1; コマンドは動作中の全てのプロセスを表示し、
|
<command>top</command> コマンドは動作中の全てのプロセスを表示し、
|
||||||
数秒ごとに表示を更新するので、
|
数秒ごとに表示を更新するので、
|
||||||
計算機がなにをしているのかインタラクティブに知ることができます。</para>
|
計算機がなにをしているのかインタラクティブに知ることができます。</para>
|
||||||
|
|
||||||
<para>デフォルトでは、&man.ps.1; は動作中かつ所有者が自分のコマンドのみを表示します。
|
<para>デフォルトでは、<command>ps</command>
|
||||||
|
は動作中かつ所有者が自分のコマンドのみを表示します。
|
||||||
例えば:</para>
|
例えば:</para>
|
||||||
|
|
||||||
<screen>&prompt.user; <userinput>ps</userinput>
|
<screen>&prompt.user; <userinput>ps</userinput>
|
||||||
|
@ -1508,13 +1522,13 @@
|
||||||
<literal>PID</literal> は先ほど見たプロセス ID です。
|
<literal>PID</literal> は先ほど見たプロセス ID です。
|
||||||
PID は 1 から順に 99999 まで割り当てられ、
|
PID は 1 から順に 99999 まで割り当てられ、
|
||||||
足りなくなると最初に戻って使い回されます。
|
足りなくなると最初に戻って使い回されます。
|
||||||
<literal>TT</literal> はプログラムが動いている tty を示します。
|
<literal>TT</literal> の列はプログラムが動いている tty を示します。
|
||||||
差し当たって無視してもかまわないでしょう。
|
差し当たって無視してもかまわないでしょう。
|
||||||
<literal>STAT</literal> はプログラムの状態を示しますが、
|
<literal>STAT</literal> はプログラムの状態を示しますが、
|
||||||
これもまた無視してよいでしょう。
|
これもまた無視してよいでしょう。
|
||||||
<literal>TIME</literal> はプログラムがその CPU
|
<literal>TIME</literal> はプログラムがその CPU
|
||||||
上で動いている時間の長さです—これはプログラムをスタートさせたとき
|
上で動いている時間の長さです—
|
||||||
からの経過時間であるとはかぎりません。
|
通常はプログラムをスタートさせたときからの経過時間ではありません。
|
||||||
CPU 上で時間を使う必要があるまでかなりの時間を費すようなプログラムもあるからです。
|
CPU 上で時間を使う必要があるまでかなりの時間を費すようなプログラムもあるからです。
|
||||||
最後に、<literal>COMMAND</literal>
|
最後に、<literal>COMMAND</literal>
|
||||||
はそのプログラムを起動するのに使われたコマンドラインとなります。</para>
|
はそのプログラムを起動するのに使われたコマンドラインとなります。</para>
|
||||||
|
@ -1679,9 +1693,9 @@ Swap: 256M Total, 38M Used, 217M Free, 15% Inuse
|
||||||
<title>プロセスにシグナルを送る</title>
|
<title>プロセスにシグナルを送る</title>
|
||||||
|
|
||||||
<para>この例では、&man.inetd.8; にシグナルを送る方法を示します。
|
<para>この例では、&man.inetd.8; にシグナルを送る方法を示します。
|
||||||
&man.inetd.8; の設定ファイルは
|
<command>inetd</command> の設定ファイルは
|
||||||
<filename>/etc/inetd.conf</filename> で、
|
<filename>/etc/inetd.conf</filename> で、
|
||||||
&man.inetd.8; は <literal>SIGHUP</literal>
|
<command>inetd</command> は <literal>SIGHUP</literal>
|
||||||
が送信されるとこの設定ファイルを再読み込みします。</para>
|
が送信されるとこの設定ファイルを再読み込みします。</para>
|
||||||
|
|
||||||
<step>
|
<step>
|
||||||
|
@ -2198,6 +2212,11 @@ Password:</screen>
|
||||||
<para>パスワードを正確に入力したら、FreeBSD にログインして
|
<para>パスワードを正確に入力したら、FreeBSD にログインして
|
||||||
利用可能なすべてのコマンドを試せるようになっているはずです。</para>
|
利用可能なすべてのコマンドを試せるようになっているはずです。</para>
|
||||||
|
|
||||||
|
<para><acronym>MOTD</acronym>、もしくはコマンドプロンプト
|
||||||
|
(<literal>#</literal>, <literal>$</literal>
|
||||||
|
または <literal>$</literal>)
|
||||||
|
に表示されるメッセージを読むようにしましょう。
|
||||||
|
これは FreeBSD へのログインに成功したときに表示されます。</para>
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
<sect2 xml:id="consoles-virtual">
|
<sect2 xml:id="consoles-virtual">
|
||||||
|
@ -2301,7 +2320,7 @@ console none unknown off secure</programlisting>
|
||||||
FreeBSD がシングルユーザモードで起動した場合にも
|
FreeBSD がシングルユーザモードで起動した場合にも
|
||||||
<systemitem class="username">root</systemitem> のパスワードを要求します。</para>
|
<systemitem class="username">root</systemitem> のパスワードを要求します。</para>
|
||||||
|
|
||||||
<para><emphasis>ただし、これを<literal>insecure</literal> に
|
<para><emphasis>これを <literal>insecure</literal> に
|
||||||
変更する場合は十分注意してください。</emphasis>
|
変更する場合は十分注意してください。</emphasis>
|
||||||
<systemitem class="username">root</systemitem> のパスワードを忘れてしまったら、
|
<systemitem class="username">root</systemitem> のパスワードを忘れてしまったら、
|
||||||
シングルユーザモードで起動するのは少しややこしくなります。
|
シングルユーザモードで起動するのは少しややこしくなります。
|
||||||
|
@ -2394,7 +2413,7 @@ console none unknown off secure</programlisting>
|
||||||
force software to do some sleazy tricks, then he would be able
|
force software to do some sleazy tricks, then he would be able
|
||||||
to shave a few gates off the design and allow his CPU core to
|
to shave a few gates off the design and allow his CPU core to
|
||||||
run faster. While it was made to work with this new kind of
|
run faster. While it was made to work with this new kind of
|
||||||
hardware (known these days as RISC), <filename>a.out</filename>
|
hardware (known these days as <acronym>RISC</acronym>), <filename>a.out</filename>
|
||||||
was ill-suited for this hardware, so many formats were developed
|
was ill-suited for this hardware, so many formats were developed
|
||||||
to get to a better performance from this hardware than the
|
to get to a better performance from this hardware than the
|
||||||
limited, simple <filename>a.out</filename> format could
|
limited, simple <filename>a.out</filename> format could
|
||||||
|
@ -2430,7 +2449,7 @@ console none unknown off secure</programlisting>
|
||||||
added shared libraries and fixed some bugs. The GNU folks that
|
added shared libraries and fixed some bugs. The GNU folks that
|
||||||
originally write these programs rewrote them and added simpler
|
originally write these programs rewrote them and added simpler
|
||||||
support for building cross compilers, plugging in different
|
support for building cross compilers, plugging in different
|
||||||
formats at will, etc. Since many people wanted to build cross
|
formats at will, and so on. Since many people wanted to build cross
|
||||||
compilers targeting FreeBSD, they were out of luck since the
|
compilers targeting FreeBSD, they were out of luck since the
|
||||||
older sources that FreeBSD had for <application>as</application> and <application>ld</application> were not up to the
|
older sources that FreeBSD had for <application>as</application> and <application>ld</application> were not up to the
|
||||||
task. The new GNU tools chain (<application>binutils</application>) does support cross
|
task. The new GNU tools chain (<application>binutils</application>) does support cross
|
||||||
|
@ -2448,7 +2467,7 @@ console none unknown off secure</programlisting>
|
||||||
details that are different between the two in how they map
|
details that are different between the two in how they map
|
||||||
pages, handle init code, etc. None of these are very important,
|
pages, handle init code, etc. None of these are very important,
|
||||||
but they are differences. In time support for
|
but they are differences. In time support for
|
||||||
<filename>a.out</filename> will be moved out of the GENERIC
|
<filename>a.out</filename> will be moved out of the <filename>GENERIC</filename>
|
||||||
kernel, and eventually removed from the kernel once the need to
|
kernel, and eventually removed from the kernel once the need to
|
||||||
run legacy <filename>a.out</filename> programs is past.</para>
|
run legacy <filename>a.out</filename> programs is past.</para>
|
||||||
</sect1>
|
</sect1>
|
||||||
|
|
Loading…
Reference in a new issue