|
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)
|
|
22.
|
|
|
pwd
|
|
|
|
pwd
|
|
Translated and reviewed by
hialan
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:157(title)
|
|
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)
|
|
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)
|
|
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)
|
|
58.
|
|
|
Options can be grouped in clusters so <screen>ls -sh</screen> is exactly the same command as <screen>ls -s -h</screen> Most options have a long version, prefixed with two dashes instead of one, so even <screen>ls --size --human-readable</screen> is the same command.
|
|
|
|
(no translation yet)
|
|
Translated and reviewed by
sheldonwang
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:363(para)
|
|
60.
|
|
|
<emphasis role="strong"><emphasis>command</emphasis> --help</emphasis> and <emphasis role="strong">man <emphasis>command</emphasis></emphasis> are the two most important tools at the command line.
|
|
|
|
(no translation yet)
|
|
Translated and reviewed by
sheldonwang
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:375(para)
|
|
61.
|
|
|
Virtually all commands understand the <emphasis role="strong">-h</emphasis> (or <emphasis role="strong">--help</emphasis>) option which will produce a short usage description of the command and it's options, then exit back to the command prompt. Type <screen>man -h</screen> or <screen>man --help</screen> to see this in action.
|
|
|
|
(no translation yet)
|
|
Translated and reviewed by
sheldonwang
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:382(para)
|
|
65.
|
|
|
<screen>man intro</screen> is especially useful - it displays the "Introduction to user commands" which is a well-written, fairly brief introduction to the Linux command line.
|
|
|
|
(no translation yet)
|
|
Translated and reviewed by
sheldonwang
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:412(para)
|