|
15.
|
|
|
The <command>cd</command> command changes directories. When you open a terminal you will be in your home directory. To move around the file system you will use <command>cd</command>.
|
|
|
|
<command>cd</command>コマンドはディレクトリを変更します。端末を開いた時、自分のホームディレクトリにいるでしょう。ファイルシステム内を移動するには、<command>cd</command>を使います。
|
|
Translated and reviewed by
Nazo
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:95(para)
|
|
16.
|
|
|
To navigate into the root directory, type: <screen>cd /</screen>
|
|
|
|
rootディレクトリへ移動する: <screen>cd /</screen>
|
|
Translated and reviewed by
Jun Sumida
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:104(para)
|
|
17.
|
|
|
To navigate to your home directory, type: <screen>cd</screen> or <screen>cd ~</screen>
|
|
|
|
自分のホームディレクトリへ移動する: <screen>cd</screen> or <screen>cd ~</screen>
|
|
Translated and reviewed by
Jun Sumida
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:110(para)
|
|
18.
|
|
|
The <command>~</command> character represents the current user's home directory. As seen above, <command>cd ~</command> is equivalent to <command>cd /home/username/</command>. However, when running a command as root (using <command>sudo</command>, for example), <command>~</command> points instead to <filename class="directory">/root</filename>. When running a command with <command>sudo</command>, the full path to your home directory must be given.
|
|
|
|
<command>~</command>という文字は現在のユーザーのホームディレクトリを表します。上で分かるように、<command>cd ~</command>は<command>cd /home/ユーザ名/</command>と等価です。しかしながら、(例えば、<command>sudo</command>を使って)コマンドを管理者(root)として実行する時は、<command>~</command>は<filename class="directory">/root</filename>を意味します。<command>sudo</command>でコマンドを実行する時は、あなたのホームディレクトリへのフルパスを与える必要があります。
|
|
Translated and reviewed by
Nazo
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:116(para)
|
|
19.
|
|
|
To navigate up one directory level, type: <screen>cd ..</screen>
|
|
|
|
一つ上のディレクトリ(ディレクトリ階層)へ移動する: <screen>cd ..</screen>
|
|
Translated and reviewed by
Jun Sumida
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:127(para)
|
|
20.
|
|
|
To navigate to the previous directory (or back), type: <screen>cd -</screen>
|
|
|
|
一つ前(または後ろ)のディレクトリへ移動する: <screen>cd -</screen>
|
|
Translated and reviewed by
Jun Sumida
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:133(para)
|
|
21.
|
|
|
To navigate through multiple levels of directories at once, specify the full directory path that you want to go to. For example, type: <screen>cd /var/www</screen> to go directly to the <filename class="directory">/www</filename> subdirectory of <filename class="directory">/var/</filename>. As another example, type: <screen>cd ~/Desktop</screen> to move you to the <filename class="directory">Desktop</filename> subdirectory inside your home directory.
|
|
|
|
複数にわたるディレクトリの階層を一度の操作で移動するには、移動したいディレクトリのフルパスを指定します。例えば:<screen>cd /var/www</screen>と入力すれば、<filename class="directory">/var/</filename>のサブディレクトリである<filename class="directory">/www</filename>へ直接移動します。別の例としては:<screen>cd ~/Desktop</screen>と入力すれば、ホームディレクトリにある<filename class="directory">Desktop</filename>ディレクトリに移動します。
|
|
Translated and reviewed by
Nazo
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:140(para)
|
|
22.
|
|
|
pwd
|
|
|
|
pwd
|
|
Translated and reviewed by
Jun Sumida
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:157(title)
|
|
23.
|
|
|
<application>Xfce4 Terminal</application> also displays this information in the title bar of its window.
|
|
|
|
また、<application>Xfce4 端末</application>はそのウィンドウのタイトルバーに情報を表示します。
|
|
Translated and reviewed by
Nazo
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:167(para)
|
|
24.
|
|
|
The <command>pwd</command> command outputs which directory you are currently located in (<acronym>pwd</acronym> stands for <quote>print working directory</quote>). For example, typing <screen>pwd</screen> in the <filename class="directory">Desktop</filename> directory, will show <computeroutput>/home/username/Desktop</computeroutput>. <placeholder-1/>
|
|
|
|
<command>pwd</command>コマンドは、現在作業中のディレクトリを出力します(<acronym>pwd</acronym>は<quote>print working directory(作業中のディレクトリを出力する)</quote>を意味します)。例えば、<filename class="directory">デスクトップ</filename>ディレクトリで<screen>pwd</screen>を実行した場合、<computeroutput>/home/ユーザ名/デスクトップ</computeroutput>が表示されます。<placeholder-1/>
|
|
Translated and reviewed by
Nazo
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:158(para)
|