|
64.
|
|
|
The following commands will need to be prefaced with the <command>sudo</command> command. Please see <ulink url="https://help.ubuntu.com/community/RootSudo">RootSudo</ulink> for information on using <command>sudo</command>.
|
|
|
|
以下的指令將需要以 <command>sudo</command> 指令作為開頭。請見 <ulink url="https://help.ubuntu.com/community/RootSudo">RootSudo</ulink> 以取得使用 <command>sudo</command> 的相關資訊。
|
|
Translated and reviewed by
hialan
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:294(para)
|
|
65.
|
|
|
Adding a New Group
|
|
|
|
新增一個群組
|
|
Translated and reviewed by
hialan
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:303(title)
|
|
66.
|
|
|
The <command>addgroup</command> command is used to create a new group on the system. To create a new group, type: <screen>addgroup newgroup</screen> The above command will create a new group called <emphasis role="strong">newgroup</emphasis>.
|
|
|
|
<command>addgroup</command> 命令在系統中常被用來建立一個新的群組。 要建立一個新的群組,輸入: <screen>addgroup newgroup</screen> 以上的命令將建立一個叫做 <emphasis role="strong">newgroup</emphasis> 的新群組。
|
|
Translated and reviewed by
hialan
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:304(para)
|
|
67.
|
|
|
Adding A New User
|
|
|
|
新增一個使用者
|
|
Translated and reviewed by
Yu-Hsiang Tseng
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:313(title)
|
|
68.
|
|
|
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>.
|
|
|
|
<command>adduser</command> 在系統中常被用來建立一個新使用者。要建立一個新使用者,輸入: <screen>adduser newuser</screen> 以上的命令將建立一個叫做 <emphasis role="strong">newuser</emphasis> 的新使用者。
|
|
Translated and reviewed by
hialan
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:314(para)
|
|
69.
|
|
|
To assign a password for the new user use the <command>passwd</command> command: <screen>passwd newuser</screen>
|
|
|
|
要為一個新使用者指定密碼,使用 <command>passwd</command> 指令: <screen>passwd newuser</screen>
|
|
Translated and reviewed by
hialan
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:321(para)
|
|
70.
|
|
|
Finally, to assign the new user to the new group, type: <screen>adduser newuser newgroup</screen>
|
|
|
|
最後,要指定一個新使用者給一個新群組,輸入: <screen>adduser newuser newgroup</screen>
|
|
Translated and reviewed by
hialan
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:327(para)
|
|
71.
|
|
|
Options
|
|
|
|
選項
|
|
Translated and reviewed by
Yu-Hsiang Tseng
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:335(title)
|
|
72.
|
|
|
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)
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:336(para)
|
|
73.
|
|
|
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)
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:347(para)
|