|
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)
|
|
27.
|
|
|
To list information in a long format, type: <screen>ls -l</screen>. This will include information about permissions, owner, and last modification time.
|
|
|
|
如果要列出长形式的信息,键入:<screen>ls -l</screen>。该命令会附加列出文件的权限,所有者和文件最后修改时间。
|
|
Translated by
lert
|
|
Reviewed by
1+1=2
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:192(para)
|
|
28.
|
|
|
To list your root patition, type: <screen>ls /</screen>
|
|
|
|
如果要列出你的root分区文件,可以键入:<screen>ls /</screen>。
|
|
Translated by
lert
|
|
Reviewed by
1+1=2
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:199(para)
|
|
29.
|
|
|
To list one time per line, type: <screen>ls -1</screen>
|
|
|
|
如果要每行列出一条信息,可以键入:<screen>ls -1</screen>
|
|
Translated and reviewed by
1+1=2
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:205(para)
|
|
30.
|
|
|
cp
|
|
|
|
cp
|
|
Translated and reviewed by
1+1=2
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:191(title)
|
|
31.
|
|
|
The <command>cp</command> command will make a copy of a file for you (<acronym>cp</acronym> stands simply for "copy"). For example, type: <screen>cp file foo</screen> to make a exact copy of <filename>file</filename> and name it <filename>foo</filename>, but the file <filename>file</filename> will still be there.
|
|
|
|
<command>cp</command>命令可以为复制你想要的文件 (<acronym>cp</acronym> 是"copy"的简称)。 比如,键入: <screen>cp file foo</screen>可以复制文件名为<filename>file</filename>的文件并且将其重命名为 <filename>foo</filename>。而原来的文件<filename>file</filename>还在那里。
|
|
Translated by
lert
|
|
Reviewed by
1+1=2
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:214(para)
|
|
32.
|
|
|
mv
|
|
|
|
mv
|
|
Translated and reviewed by
1+1=2
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:202(title)
|