|
44.
|
|
|
The <command>mkdir</command> command is used to create a new directory (<acronym>mkdir</acronym> stands for <quote>make directory</quote>). To create a new directory named <filename class="directory">foobar</filename>, type: <screen>mkdir foobar</screen>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
cli/C/cli.xml:207(para)
|
|
45.
|
|
|
cp - copy files or directories
|
|
|
|
cp - copy files or directories
|
|
Translated and reviewed by
Jared Norris
|
|
|
|
Located in
docs/cli/C/cli.xml:212(title)
|
|
46.
|
|
|
The <command>cp</command> command makes a copy of a file or directory (<acronym>cp</acronym> is short for <quote>copy</quote>). To make an exact copy of <filename>foo</filename> and name it <filename>bar</filename>, type: <screen>cp foo bar</screen> To make an exact copy of the <filename class="directory">foo_dir</filename> directory and name it <filename class="directory">bar_dir</filename>, type: <screen>cp -r foo_dir bar_dir</screen>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
cli/C/cli.xml:215(para)
|
|
47.
|
|
|
mv - move files or directories
|
|
|
|
mv - move files or directories
|
|
Translated and reviewed by
Jared Norris
|
|
|
|
Located in
docs/cli/C/cli.xml:224(title)
|
|
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
cli/C/cli.xml:227(para)
|
|
49.
|
|
|
rm - remove files or directories
|
|
|
|
rm - remove files or directories
|
|
Translated and reviewed by
Jared Norris
|
|
|
|
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
cli/C/cli.xml:243(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>
|
|
|
|
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>
|
|
Translated and reviewed by
Jared Norris
|
|
|
|
Located in
../docs/cli/C/cli.xml:246(para)
|
|
52.
|
|
|
System Information Commands
|
|
|
|
System Information Commands
|
|
Translated and reviewed by
Jared Norris
|
|
|
|
Located in
docs/cli/C/cli.xml:260(title)
|
|
53.
|
|
|
df - display amount of disk space
|
|
|
|
df - display amount of disk space
|
|
Translated and reviewed by
Jared Norris
|
|
|
|
Located in
docs/cli/C/cli.xml:262(title)
|