|
126.
|
|
|
The <application>locate</application> command will search for any filename you specify. It uses an index of the files on your system to work quickly. To update this index, run the command <application>sudo updatedb</application>. This command is run automatically each day if you leave your computer on. It needs to be run with administrative privileges (see <xref linkend="root-and-sudo"/>).
|
|
|
|
<application>locate</application> 命令将会搜索任何你指定的文件名,为了加快速度,它使用了你系统中的一个文件索引。要更新这个索引,需要运行 <application>sudo updatedb</application> 这条命令。如果你保持开机,这条命令每天都会被自动执行,它需要管理员权限来运行(参见 <xref linkend="root-and-sudo"/>)。
|
|
Translated and reviewed by
3str
|
Shared: |
|
<application>locate</application> 命令将会搜索任何你指定的文件名,为了加快速度,它使用了你系统中的一个文件索引。要更新这个索引,需要运行 <application>sudo updatedb</application> 这条命令。系统每天将择闲自动运行这条命令,它需要管理员权限来运行(参见 <xref linkend="root-and-sudo"/>)。
|
|
|
Suggested by
Hunt Xu
|
|
|
|
Located in
basic-concepts/C/basic-concepts.xml:638(para)
|
|
132.
|
|
|
There are six consoles available. Each one is accessible with the shortcut keys <keycombo><keycap>Ctrl</keycap><keycap>Alt</keycap><keycap>F1</keycap></keycombo> to <keycombo><keycap>Ctrl</keycap><keycap>Alt</keycap><keycap>F6</keycap></keycombo>.
|
|
|
|
一共可以使用 6 个控制台,分别用快捷键 <keycombo><keycap>Ctrl</keycap><keycap>Alt</keycap><keycap>F1</keycap></keycombo> 到 <keycombo><keycap>Ctrl</keycap><keycap>Alt</keycap><keycap>F6</keycap></keycombo> 进行切换。
|
|
Translated and reviewed by
3str
|
Shared: |
|
一共可以使用 6 个控制台,分别使用快捷键 <keycombo><keycap>Ctrl</keycap><keycap>Alt</keycap><keycap>F1</keycap></keycombo> 到 <keycombo><keycap>Ctrl</keycap><keycap>Alt</keycap><keycap>F6</keycap></keycombo> 进行切换。
|
|
|
Suggested by
Hunt Xu
|
|
|
|
Located in
basic-concepts/C/basic-concepts.xml:678(para)
|
|
141.
|
|
|
If you need to use a text editor from the command line, you can use <application>nano</application>, which is a simple to use text editor. When running it from the command line, always use the following command, which ensures that the editor will not introduce line breaks:<screen>nano -w</screen>
|
|
|
|
如果需要在命令行中使用文本编辑器,那么您可以使用 <application>nano</application> 这个用法简单的文本编辑器。如果要在命令行中运行 nano,请务必使用如下命令以确保编辑器不会插入断行符:<screen>nano -w</screen>。
|
|
Translated and reviewed by
3str
|
Shared: |
|
如果需要在命令行中使用文本编辑器,那么您可以使用 <application>nano</application> 这个易用的文本编辑器。如果要在命令行中运行 nano,请务必使用如下命令以确保编辑器不会插入断行符:<screen>nano -w</screen>。
|
|
|
Suggested by
Hunt Xu
|
|
|
|
Located in
basic-concepts/C/basic-concepts.xml:744(para)
|
|
143.
|
|
|
There are also quite a few other terminal-based editors available in Kubuntu, popular ones include <application>VIM</application> and <application>Emacs</application> (the pros and cons of each are cause for much friendly debate within the Linux community). These are often more complex to use than <application>nano</application>, but are also more powerful.
|
|
|
|
Kubuntu中也有相当多的其它基于终端的编辑器,流行的有<application>VIM</application>和<application>Emacs</application>(在Linux社区各自的支持者和反对者引起了很多友好的争论).他们通常比<application>nano</application>的使用更为复杂,但也更强大。
|
|
Translated and reviewed by
3str
|
Shared: |
|
Kubuntu 中也有相当多的其它基于终端的编辑器,流行的有 <application>VIM</application> 和 <application>Emacs</application> (在Linux社区各自的支持者和反对者之间引起了很多友好的争论)。他们通常使用起来比<application>nano</application>更为复杂,但也更加强大。
|
|
|
Suggested by
Hunt Xu
|
|
|
|
Located in
basic-concepts/C/basic-concepts.xml:756(para)
|