|
17.
|
|
|
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
|
Shared: |
|
要进入你的主目录,输入:<screen>cd</screen>或者<screen>cd ~</screen>
|
|
|
Suggested by
Chen Ming
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:110(para)
|
|
18.
|
|
|
To navigate up one directory level, type: <screen>cd ..</screen>
|
|
|
|
要浏览上一层目录,键入:<screen>cd ..</screen>
|
|
Translated and reviewed by
1+1=2
|
Shared: |
|
要进入上一级目录,键入:<screen>cd ..</screen>
|
|
|
Suggested by
Chen Ming
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:127(para)
|
|
19.
|
|
|
To navigate to the previous directory (or back), type: <screen>cd -</screen>
|
|
|
|
要浏览先前的目录(或者后退), 键入: <screen>cd -</screen>
|
|
Translated and reviewed by
1+1=2
|
Shared: |
|
要进入之前的目录,输入:<screen>cd -</screen>
|
|
|
Suggested by
Chen Ming
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:133(para)
|
|
20.
|
|
|
To navigate through multiple levels of directory 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">桌面</filename>子目录下。
|
|
Translated and reviewed by
1+1=2
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:136(para)
|
|
21.
|
|
|
pwd
|
|
|
|
pwd
|
|
Translated and reviewed by
1+1=2
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:157(title)
|
|
22.
|
|
|
The <application>Xfce4 Terminal</application> also displays this information in the title bar of its window.
|
|
|
|
终端<application>Xfce4 Terminal</application>同时在它的窗口标题栏显示该信息。
|
|
Translated by
lert
|
|
Reviewed by
1+1=2
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:164(para)
|
|
23.
|
|
|
The <acronym>pwd</acronym> command will allow you to know in which directory you're located (<acronym>pwd</acronym> stands for "print working directory"). For example, typing <screen>pwd</screen> in the <filename class="directory">Desktop</filename> directory, will show <computeroutput>~/Desktop</computeroutput>. <placeholder-1/>
|
|
|
|
<acronym>pwd</acronym>命令显示你的当前目录。(<acronym>pwd</acronym>意为"print working directory")。比如:当你在目录<filename class="directory">Desktop</filename>时,键入<screen>pwd</screen>,它会显示你的当前目录为<computeroutput>~/Desktop</computeroutput>。<placeholder-1/>
|
|
Translated and reviewed by
1+1=2
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:154(para)
|
|
24.
|
|
|
ls
|
|
|
|
ls
|
|
Translated and reviewed by
1+1=2
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:176(title)
|
|
25.
|
|
|
The <command>ls</command> command will allow you to see the files in the directory you are in (<acronym>ls</acronym> stands simply for "list"). Used with certain options, you can see sizes of files, when files where made, and permissions of files. For example, typing <screen>ls ~</screen> will show you the files that are in your home directory. Examples:
|
|
|
|
<command>ls</command>命令可以允许你浏览你所在文件目录的文件(<acronym>ls</acronym> 是"list"的简称)。使用特定的选项,你可以看到文件的大小,文件的创建时间和文件的访问权限。比如,键入 <screen>ls ~</screen> 将会显示你主目录的文件。例子如下:
|
|
Translated and reviewed by
1+1=2
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:174(para)
|
|
26.
|
|
|
To list all the files (including hidden files), type: <screen>ls -a</screen>
|
|
|
|
要列出所有文件(包括隐藏文件),请输入:<screen>ls -a</screen>
|
|
Translated and reviewed by
TaoFei
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:186(para)
|