|
48.
|
|
|
The <command>mv</command> command moves a file or directory to a different location or will rename a file or directory. (<acronym>mv</acronym> is short for <quote>move</quote>). To rename the file <filename>foo</filename> to <filename>bar</filename>, type: <screen>mv foo bar</screen> To move the file <filename>foo</filename> into the current user's <filename class="directory">Desktop</filename> directory, type: <screen>mv foo ~/Desktop</screen> This will not rename <filename>foo</filename> to <filename>Desktop</filename> because <filename>foo</filename> is a file and <filename class="directory">Desktop</filename> is a directory.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../docs/cli/C/cli.xml:225(para)
|
|
49.
|
|
|
rm - remove files or directories
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:238(title)
|
|
50.
|
|
|
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> for the current directory, type: <screen>rm foo</screen>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../docs/cli/C/cli.xml:241(para)
|
|
51.
|
|
|
By default, <command>rm</command> will not remove directories. To remove a directory, you must use the <command>-r</command> option (also can be entered as either <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 role="strong"> and all of its contents!</emphasis>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../docs/cli/C/cli.xml:246(para)
|
|
52.
|
|
|
System Information Commands
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:260(title)
|
|
53.
|
|
|
df - display amount of disk space
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:262(title)
|
|
54.
|
|
|
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)
|
|
55.
|
|
|
free - display amount of free and used memory
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:272(title)
|
|
56.
|
|
|
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 the most useful for current computers.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:273(para)
|
|
57.
|
|
|
top - display top consuming processes
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:280(title)
|