|
15.
|
|
|
The <command>cd</command> command changes directories. When you open a terminal you will be in your home directory. To move around the file system you will use <command>cd</command>.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:95(para)
|
|
18.
|
|
|
The <command>~</command> character represents the current user's home directory. As seen above, <command>cd ~</command> is equivalent to <command>cd /home/username/</command>. However, when running a command as root (using <command>sudo</command>, for example), <command>~</command> points instead to <filename class="directory">/root</filename>. When running a command with <command>sudo</command>, the full path to your home directory must be given.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:116(para)
|
|
21.
|
|
|
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.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:140(para)
|
|
24.
|
|
|
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/>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:158(para)
|
|
27.
|
|
|
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.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:183(para)
|
|
33.
|
|
|
<command>rm</command> is used to delete files. <screen>rm foo</screen> deletes the file <filename>foo</filename> from the current directory.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:217(para)
|
|
34.
|
|
|
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>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:222(para)
|
|
39.
|
|
|
The <command>df</command> command displays filesystem disk space usage for all partitions. <screen>df -h</screen> will give information using megabytes (M) and gigabytes (G) instead of blocks (<emphasis role="strong">-h</emphasis> means "human-readable").
|
|
|
|
(no translation yet)
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:246(para)
|
|
47.
|
|
|
The <command>lsb_release</command> command with the <emphasis role="strong">-a</emphasis> option prints version information for the Linux release you're running. For example, typing: <screen>lsb_release -a</screen> will give you: <screen>
No LSB modules are available.
Distributor ID: Xubuntu
Description: Xubuntu 9.04
Release: 9.04
Codename: jaunty</screen>
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:290(para)
|
|
53.
|
|
|
The <command>adduser</command> is used to create new users on the system. To create a new user, type: <screen>adduser newuser</screen> The above command will create a new user called <emphasis role="strong">newuser</emphasis>.
|
|
|
|
(no translation yet)
|
|
Translated and reviewed by
sheldonwang
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:330(para)
|