|
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)
|
|
42.
|
|
|
The <command>cp</command> command makes a copy of a file. For example, type: <screen>cp foo bar</screen> to make an exact copy of <filename>foo</filename> and name it <filename>bar</filename>. <filename>foo</filename> will be unchanged.
|
|
|
|
<command>cp</command> 命令用于复制一个文件。例如输入:<screen>cp foo bar</screen> 将会创建 <filename>foo</filename> 的一个拷贝,并命名为 <filename>bar</filename>。<filename>foo</filename> 则保持不变。
|
|
Translated and reviewed by
Yiding He
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:176(para)
|
|
43.
|
|
|
mv
|
|
|
|
mv
|
|
Translated by
Wentao Tang
|
|
Reviewed by
1+1=2
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:186(title)
|
|
44.
|
|
|
The <command>mv</command> command moves a file to a different location or will rename a file. Examples are as follows: <screen>mv foo bar</screen> will rename the file <filename>foo</filename> to <filename>bar</filename>. <screen>mv foo ~/Desktop</screen> will move the file <filename>foo</filename> to your <filename class="directory">Desktop</filename> directory but will not rename it.
|
|
|
|
<command>mv</command> 命令用于重命名文件或者将文件移到别处。举例:<screen>mv foo bar</screen> 表示将文件 <filename>foo</filename> 重命名为 <filename>bar</filename>。<screen>mv foo ~/Desktop</screen> 表示将文件<filename>foo</filename> 移到你的<filename class="directory">Desktop</filename> 目录下并保持原来的名字。
|
|
Translated and reviewed by
Yiding He
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:187(para)
|
|
45.
|
|
|
rm
|
|
|
|
rm
|
|
Translated by
Wentao Tang
|
|
Reviewed by
1+1=2
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:200(title)
|
|
46.
|
|
|
<command>rm</command> is used to delete files. <screen>rm foo</screen> deletes the file <filename>foo</filename> from the current directory.
|
|
|
|
<command>rm</command> 用来删除文件。 <screen>rm foo</screen> 表示从当前目录删除文件 <filename>foo</filename>。
|
|
Translated and reviewed by
Yiding He
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:201(para)
|
|
47.
|
|
|
By default, <command>rm</command> will not remove directories. To remove a directory, you must use the <command>-R</command> option. For example, <screen>rm -R foobar</screen> will remove the directory foobar, <emphasis role="strong">and all of its contents!</emphasis>
|
|
|
|
默认, <command>rm</command> 将不移除目录。为了移除目录,你必须使用 <command>-R</command> 选项。例如,<screen>rm -R foobar</screen> 将移除目录 foobar, <emphasis role="strong">和它的所有内容!</emphasis>
|
|
Translated and reviewed by
Tao Wei
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:206(para)
|