|
64.
|
|
|
The <command>uname</command> command with the <command>-a</command> option displays all system information, including machine name, kernel name & version, and other details. This command is useful for checking which kernel is in use. (<abbrev>uname</abbrev> is short for <quote>unix name</quote>).
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:291(para)
|
|
66.
|
|
|
The <command>lsb_release</command> with the <command>-a</command> option prints version information for the <trademark>Linux</trademark> release in use. For example, typing: <screen>lsb_release -a</screen> will display: <screen>No LSB modules are available. ![](/@@/translation-newline)
Distributor ID: Ubuntu ![](/@@/translation-newline)
Description: Ubuntu 12.04 ![](/@@/translation-newline)
Release: 12.04 ![](/@@/translation-newline)
Codename: precise ![](/@@/translation-newline)
</screen>
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:300(para)
|
|
70.
|
|
|
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>foobar</emphasis>.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:326(para)
|
|
72.
|
|
|
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>foobar</emphasis>.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:334(para)
|
|
74.
|
|
|
The <command>passwd</command> command is used to assign a new password to a new user or change the current password for an existing user. To add a password or change the password for the user <emphasis>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:342(para)
|
|
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)
|
|
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)
|
|
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:390(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)
|