|
70.
|
|
|
The <command>passwd</command> command is used to assign a new password to a new user or to change the current password for an existing user. To add a password or change the password for the user <emphasis role="strong">foobar</emphasis>, type: <screen>passwd foobar</screen> For new users, this will generate a prompt to enter the new password. For an existing user, there will be a prompt for the existing password before the prompt for a new password.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../docs/cli/C/cli.xml:350(para)
|
|
71.
|
|
|
Assign User to Group
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:352(title)
|
|
72.
|
|
|
To assign the user <emphasis role="strong">foobar</emphasis> to the group <emphasis role="strong">barfoo</emphasis>, type: <screen>adduser foobar barfoo</screen>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../docs/cli/C/cli.xml:365(para)
|
|
73.
|
|
|
Options
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:362(title)
|
|
74.
|
|
|
The default behavior for a command may usually be modified by adding <command>--option</command> to the command. For example, the <link linkend="ls"><command>ls</command></link> command has an <command>-s</command> option. The <command>ls -s</command> will include file sizes in the listing. There is also a <command>-h</command> option to display file sizes in a <quote>human readable</quote> format.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:363(para)
|
|
75.
|
|
|
Options can be grouped in clusters, so <screen>ls -sh</screen> is the same command as <screen> ls -s -h</screen> Most options have a long version, prefixed with two dashes instead of one, so <screen>ls --size --human-readable</screen> is also the same command as <screen>ls -sh</screen>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../docs/cli/C/cli.xml:383(para)
|
|
76.
|
|
|
<quote>Man</quote> and Getting Help
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:384(title)
|
|
77.
|
|
|
<emphasis role="strong"><emphasis>command</emphasis> --help</emphasis> and <command>man</command><emphasis role="strong"><emphasis>command</emphasis></emphasis> are the two most important tools at the command line.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../docs/cli/C/cli.xml:398(para)
|
|
78.
|
|
|
Virtually all commands understand the <command>-h</command> (or <command>--help</command>) option which will produce a short usage description of the command and its 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)
|
|
|
|
Located in
../docs/cli/C/cli.xml:404(para)
|
|
79.
|
|
|
Every command and nearly every application in Linux has a <abbrev>man</abbrev> (manual) file. It 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> brings up the <command>mv</command> manual.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../docs/cli/C/cli.xml:413(para)
|