|
31.
|
|
|
The <command>mv</command> command moves a file to a different location or will rename a file. Examples are as follows: <screen>mv foo bar</screen> will rename the file <filename>foo</filename> to <filename>bar</filename>. <screen>mv foo ~/Desktop</screen> will move the file <filename>foo</filename> to your <filename class="directory">Desktop</filename> directory but will not rename it.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:203(para)
|
|
39.
|
|
|
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:246(para)
|
|
41.
|
|
|
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:257(para)
|
|
43.
|
|
|
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:268(para)
|
|
48.
|
|
|
Executing Commands with Elevated Privileges
|
|
|
|
(no translation yet)
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:309(title)
|
|
49.
|
|
|
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:310(para)
|
|
51.
|
|
|
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:320(para)
|
|
54.
|
|
|
To assign a password for the new user use the <command>passwd</command> command: <screen>passwd newuser</screen>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:337(para)
|
|
55.
|
|
|
Finally, to assign the new user to the new group, type: <screen>adduser newuser newgroup</screen>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:343(para)
|
|
57.
|
|
|
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:352(para)
|