|
66.
|
|
|
The <command>addgroup</command> command is used to create a new group in the system. To create a new group, type: <screen>sudo addgroup foobar</screen> The above command will create a new group called <emphasis role="strong">foobar</emphasis>.
|
|
|
|
The <command>addgroup</command> command is used to create a new group in the system. To create a new group, type: <screen>sudo addgroup foobar</screen> The above command will create a new group called <emphasis role="strong">foobar</emphasis>.
|
|
Translated and reviewed by
Jared Norris
|
|
|
|
Located in
../docs/cli/C/cli.xml:331(para)
|
|
67.
|
|
|
Adding a New User
|
|
|
|
Adding a New User
|
|
Translated and reviewed by
Jared Norris
|
|
|
|
Located in
docs/cli/C/cli.xml:333(title)
|
|
68.
|
|
|
The <command>adduser</command> command is used to create a new user on the system. To create a new user, type: <screen>adduser foobar</screen> which will create a new user called <emphasis role="strong">foobar</emphasis>.
|
|
|
|
The <command>adduser</command> command is used to create a new user on the system. To create a new user, type: <screen>adduser foobar</screen> which will create a new user called <emphasis role="strong">foobar</emphasis>.
|
|
Translated and reviewed by
Jared Norris
|
|
|
|
Located in
../docs/cli/C/cli.xml:341(para)
|
|
69.
|
|
|
Add or Change a User Password
|
|
|
|
Add or Change a User Password
|
|
Translated and reviewed by
Jared Norris
|
|
|
|
Located in
docs/cli/C/cli.xml:341(title)
|
|
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.
|
|
|
|
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.
|
|
Translated and reviewed by
Jared Norris
|
|
|
|
Located in
../docs/cli/C/cli.xml:350(para)
|
|
71.
|
|
|
Assign User to Group
|
|
|
|
Assign User to Group
|
|
Translated and reviewed by
Jared Norris
|
|
|
|
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>
|
|
|
|
To assign the user <emphasis role="strong">foobar</emphasis> to the group <emphasis role="strong">barfoo</emphasis>, type: <screen>adduser foobar barfoo</screen>
|
|
Translated and reviewed by
Jared Norris
|
|
|
|
Located in
../docs/cli/C/cli.xml:365(para)
|
|
73.
|
|
|
Options
|
|
|
|
Options
|
|
Translated and reviewed by
Jared Norris
|
|
|
|
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.
|
|
|
|
The default behaviour 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.
|
|
Translated and reviewed by
Jared Norris
|
|
|
|
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>
|
|
|
|
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>
|
|
Translated and reviewed by
Jared Norris
|
|
|
|
Located in
../docs/cli/C/cli.xml:383(para)
|