|
41.
|
|
|
touch - create empty file
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:192(title)
|
|
42.
|
|
|
The <command>touch</command> command is used either to change a file's access and modification timestamps or to create a new empty file. For example, <screen>touch foo</screen> will create a new empty file named <filename>foo</filename>. If <filename>foo</filename> is already a file, then using <command>touch</command> will update the timestamps on the file which will show the last time a file was <emphasis>touched</emphasis>.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
../docs/cli/C/cli.xml:194(para)
|
|
43.
|
|
|
mkdir - make directory
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:203(title)
|
|
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
|
|
|
|
(no translation yet)
|
|
|
|
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
|
|
|
|
(no translation yet)
|
|
|
|
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
|
|
|
|
(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
cli/C/cli.xml:243(para)
|