|
45.
|
|
|
By default, <command>rm</command> will not remove directories. To remove a directory, you must use the <command>-R</command> option. For example, <screen>rm -R foobar</screen> will remove the directory foobar, <emphasis role="strong">and all of its contents!</emphasis>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:206(para)
|
|
47.
|
|
|
The <command>mkdir</command> command allows you to create directories. For example, typing: <screen>mkdir music</screen> will create a directory named <filename class="directory">music</filename> in the current directory.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:216(para)
|
|
50.
|
|
|
The <command>df</command> command displays filesystem disk space usage for all partitions. <screen>df -h</screen> will give information using megabytes (M) and gigabytes (G) instead of blocks (<emphasis role="strong">-h</emphasis> means "human-readable").
|
|
|
|
(no translation yet)
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:230(para)
|
|
52.
|
|
|
The <command>free</command> command displays the amount of free and used memory in the system. <screen>free -m</screen> will give the information using megabytes, which is probably most useful for current computers.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:241(para)
|
|
54.
|
|
|
The <command>top</command> command displays information on your GNU/Linux system, running processes and system resources, including CPU, RAM & swap usage and total number of tasks being run. To exit <application>top</application>, press <keycap>q</keycap>.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:252(para)
|
|
56.
|
|
|
The <command>uname</command> command with the <emphasis role="strong">-a</emphasis> option, prints all system information, including machine name, kernel name & version, and a few other details. Most useful for checking which kernel you're using.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:263(para)
|
|
60.
|
|
|
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>.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:294(para)
|
|
62.
|
|
|
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>.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:304(para)
|
|
64.
|
|
|
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>.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:314(para)
|
|
68.
|
|
|
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)
|