|
54.
|
|
|
To assign a password for the new user use the <command>passwd</command> command: <screen>passwd newuser</screen>
|
|
|
|
(no translation yet)
|
|
Translated and reviewed by
sheldonwang
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:337(para)
|
|
55.
|
|
|
Finally, to assign the new user to the new group, type: <screen>adduser newuser newgroup</screen>
|
|
|
|
(no translation yet)
|
|
Translated and reviewed by
sheldonwang
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:343(para)
|
|
57.
|
|
|
The default behavior for a command may usually be modified by adding a <emphasis role="strong">-- <emphasis>option</emphasis></emphasis> to the command. The <link linkend="ls"><command>ls</command></link> command, for example, has a <emphasis role="strong">-s</emphasis> option so that <command>ls -s</command> will include file sizes in the listing. There is also a <emphasis role="strong">-h</emphasis> option to get those sizes in a "human readable" format.
|
|
|
|
(no translation yet)
|
|
Translated and reviewed by
sheldonwang
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:352(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)
|
|
62.
|
|
|
Every command and nearly every application in Linux will have a man (manual) file, so finding them is as simple as typing <command>man command</command> to bring up a longer manual entry for the specified command. For example, <screen>man mv</screen> will bring up the <command>mv</command> (move) manual.
|
|
|
|
(no translation yet)
|
|
Translated and reviewed by
sheldonwang
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:392(para)
|
|
63.
|
|
|
Move up and down the man file with the arrow keys, and quit back to the command prompt with <keycap>q</keycap>.
|
|
|
|
(no translation yet)
|
|
Translated and reviewed by
sheldonwang
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:401(para)
|
|
64.
|
|
|
<screen>man man</screen> will bring up the manual entry for the <command>man</command> command, which is a good place to start.
|
|
|
|
(no translation yet)
|
|
Translated and reviewed by
sheldonwang
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:406(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)
|