|
32.
|
|
|
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)
|
|
33.
|
|
|
To navigate to the previous directory (or back), type: <screen>cd -</screen>
|
|
|
|
要浏览先前的目录(或者后退), 键入: <screen>cd -</screen>
|
|
Translated by
Wentao Tang
|
|
Reviewed by
1+1=2
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:117(para)
|
|
34.
|
|
|
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.
|
|
|
|
如需跨过多级目录变更当前目录,需要指明您想进入的目录的完整路径。例子一,若直接进入目录 <filename class="directory">/var/</filename> 下的子目录 <filename class="directory">/www</filename>,则键入:<screen>cd /var/www</screen>。例子二,若进入 home 目录下的子目录 <filename class="directory">Desktop</filename>,则键入:<screen>cd ~/Desktop</screen>。
|
|
Translated and reviewed by
Tao Wei
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:124(para)
|
|
35.
|
|
|
pwd
|
|
|
|
pwd
|
|
Translated by
Wentao Tang
|
|
Reviewed by
1+1=2
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:141(title)
|
|
36.
|
|
|
<application>GNOME Terminal</application> also displays this information in the title bar of its window.
|
|
|
|
<application>GNOME 终端</application>也会在窗口的标题栏显示该信息。
|
|
Translated and reviewed by
Yiding He
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:151(para)
|
|
37.
|
|
|
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">Desktop</filename> 目录输入 <screen>pwd</screen>,将会显示 <computeroutput>/home/username/Desktop</computeroutput>。<placeholder-1/>
|
|
Translated and reviewed by
Yiding He
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:142(para)
|
|
38.
|
|
|
ls
|
|
|
|
ls
|
|
Translated by
Wentao Tang
|
|
Reviewed by
1+1=2
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:160(title)
|
|
39.
|
|
|
The <command>ls</command> command outputs a list of the files in the current directory. For example, typing <screen>ls ~</screen> will show you the files that are in your home directory.
|
|
|
|
<command>ls</command> 输出当前目录的文件列表。例如,输入<screen>ls ~</screen> 将会显示用户主目录中的文件。
|
|
Translated and reviewed by
Feng Chao
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:161(para)
|
|
40.
|
|
|
Used with the <command>-l</command> options, <command>ls</command> outputs various other information alongside the filename, such as the current permissions on the file, and the file's owner.
|
|
|
|
<command>ls</command> 命令加上 <command>-l</command> 参数,将会列出除文件名外的一些其他信息,如文件的所有者,以及当前用户对文件所拥有的权限。
|
|
Translated and reviewed by
Yiding He
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:167(para)
|
|
41.
|
|
|
cp
|
|
|
|
cp
|
|
Translated by
Wentao Tang
|
|
Reviewed by
1+1=2
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:175(title)
|