|
54.
|
|
|
The <command>rm</command> command is used to delete files and directories. (<acronym>rm</acronym> is short for <quote>remove</quote>). To delete the file <filename>foo</filename> from the current directory, type: <screen>rm foo</screen>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:239(para)
|
|
55.
|
|
|
By default, <command>rm</command> will not remove directories. To remove a directory, you must use the <command>-r</command> option (which can also be entered as <command>-R</command> or <command>--recursive</command>). For example, <screen>rm -r foobar</screen> or <screen>rm -R foobar</screen> or <screen>rm --recursive foobar</screen> will remove the directory <filename class="directory">foobar</filename><emphasis> and all of its contents!</emphasis>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:245(para)
|
|
58.
|
|
|
The <command>df</command> command displays filesystem disk space usage for all partitions. (<acronym>df</acronym> stands for <quote>disk free</quote>). <screen>df -h</screen> will give information using megabytes (<abbrev>M</abbrev>) and gigabytes (<abbrev>G</abbrev>) instead of blocks (<command>-h</command> means <quote>human readable</quote>).
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:263(para)
|
|
62.
|
|
|
The <command>top</command> command displays information on the <trademark>Linux</trademark> system - processes that are running, system resources including <acronym>CPU</acronym>, <acronym>RAM</acronym> & swap usage, and the total number of tasks being run. To exit <command>top</command>, press <keycap>q</keycap>.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:281(para)
|
|
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)
|
|
65.
|
|
|
lsb_release - print details about current Linux release
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:299(title)
|
|
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)
|
|
68.
|
|
|
The following commands must 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>. (<abbrev>sudo</abbrev> is short for <quote>superuser do</quote>).
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:317(para)
|
|
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)
|
|
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)
|