|
75.
|
|
|
Assign User to Group
|
|
|
|
分配用户到用户组
|
|
Translated and reviewed by
Wylmer Wang
|
|
|
|
Located in
docs/cli/C/cli.xml:352(title)
|
|
76.
|
|
|
To assign the user <emphasis>foobar</emphasis> to the group <emphasis>barfoo</emphasis>, type: <screen>adduser foobar barfoo</screen>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:353(para)
|
|
77.
|
|
|
Options
|
|
|
|
选项
|
|
Translated and reviewed by
Wylmer Wang
|
|
|
|
Located in
docs/cli/C/cli.xml:362(title)
|
|
78.
|
|
|
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)
|
|
79.
|
|
|
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 the same command as <screen>ls -sh</screen>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:371(para)
|
|
80.
|
|
|
<quote>Man</quote> and Getting Help
|
|
|
|
<quote>Man</quote> 及获取帮助
|
|
Translated and reviewed by
Wylmer Wang
|
|
|
|
Located in
docs/cli/C/cli.xml:382(title)
|
|
81.
|
|
|
<emphasis><emphasis>command</emphasis> --help</emphasis> and <command>man</command><emphasis>command</emphasis> are the two most important tools at the command line.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:385(para)
|
|
82.
|
|
|
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:387(para)
|
|
83.
|
|
|
Every command and nearly every application in <trademark>Linux</trademark> 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:399(para)
|
|
84.
|
|
|
Move up and down the man file with the arrow keys, and quit back to the command prompt with <keycap>q</keycap>.
|
|
|
|
使用箭头键在 man 文件中上下移动,用 <keycap>q</keycap> 键退回到命令提示符。
|
|
Translated and reviewed by
Wylmer Wang
|
|
|
|
Located in
docs/cli/C/cli.xml:399(para)
|