|
21.
|
|
|
<emphasis role="strong">Note that Linux is case sensitive.</emphasis> User, user, and USER are all different to Linux.
|
|
|
|
<emphasis role="strong">注意,Linux是大小写敏感的。</emphasis> User, user, 和 USER 对 Linux 来说都是不同的。
|
|
Translated and reviewed by
Yiding He
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:57(para)
|
|
22.
|
|
|
Starting a Terminal
|
|
|
|
启动一个终端
|
|
Translated by
Jianle Ma
|
|
Reviewed by
Jianle Ma
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:68(title)
|
|
23.
|
|
|
To open a <application>Terminal</application> choose <menuchoice><guimenu>Applications</guimenu><guimenuitem>Accessories</guimenuitem><guimenuitem>Terminal</guimenuitem></menuchoice>.
|
|
|
|
要打开<application>终端</application>,请选择<menuchoice><guimenu>应用程序</guimenu><guimenuitem>附件</guimenuitem><guimenuitem>终端</guimenuitem></menuchoice>。
|
|
Translated by
Feng Chao
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:69(para)
|
|
24.
|
|
|
File and Directory Commands
|
|
|
|
文件和目录命令
|
|
Translated and reviewed by
stone_unix
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:75(title)
|
|
25.
|
|
|
cd
|
|
|
|
cd
|
|
Translated and reviewed by
1+1=2
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:78(title)
|
|
26.
|
|
|
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
Feng Chao
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:79(para)
|
|
27.
|
|
|
To navigate into the root directory, type: <screen>cd /</screen>
|
|
|
|
要浏览到根目录,键入:<screen>cd /</screen>
|
|
Translated and reviewed by
Yiding He
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:88(para)
|
|
28.
|
|
|
To navigate to your home directory, type: <screen>cd</screen> or <screen>cd ~</screen>
|
|
|
|
要浏览你的主目录,键入:<screen>cd</screen>或者<screen>cd ~</screen>
|
|
Translated and reviewed by
1+1=2
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:94(para)
|
|
29.
|
|
|
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/username/</command>。 然而,当作为 root 用户时(例如使用 <command>sudo</command>命令), <command>~</command> 指向 <filename class="directory">/root</filename>。当使用 <command>sudo</command>命令时,需要提供主目录的完整路径。
|
|
Translated and reviewed by
Feng Chao
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:100(para)
|
|
30.
|
|
|
To navigate up one directory level, type: <screen>cd ..</screen>
|
|
|
|
要浏览上一层目录,键入:<screen>cd ..</screen>
|
|
Translated and reviewed by
1+1=2
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:111(para)
|