|
46.
|
|
|
The <command>touch</command> command is used 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 show the last time a file was <emphasis>touched</emphasis>.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:193(para)
|
|
48.
|
|
|
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
docs/cli/C/cli.xml:204(para)
|
|
50.
|
|
|
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
docs/cli/C/cli.xml:213(para)
|
|
52.
|
|
|
The <command>mv</command> command moves a file or directory to a different location or renames 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.
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:225(para)
|
|
54.
|
|
|
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> from the current directory, type: <screen>rm foo</screen>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:239(para)
|
|
55.
|
|
|
By default, <command>rm</command> will not remove directories. To remove a directory, you must use the <command>-r</command> option (which can also be entered as <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> and all of its contents!</emphasis>
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:245(para)
|
|
58.
|
|
|
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)
|
|
62.
|
|
|
The <command>top</command> command displays information on the <trademark>Linux</trademark> system - processes that are running, system resources including <acronym>CPU</acronym>, <acronym>RAM</acronym> & swap usage, and the total number of tasks being run. To exit <command>top</command>, press <keycap>q</keycap>.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:281(para)
|
|
64.
|
|
|
The <command>uname</command> command with the <command>-a</command> option displays all system information, including machine name, kernel name & version, and other details. This command is useful for checking which kernel is in use. (<abbrev>uname</abbrev> is short for <quote>unix name</quote>).
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:291(para)
|
|
66.
|
|
|
The <command>lsb_release</command> with the <command>-a</command> option prints version information for the <trademark>Linux</trademark> release in use. For example, typing: <screen>lsb_release -a</screen> will display: <screen>No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04
Release: 12.04
Codename: precise
</screen>
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
docs/cli/C/cli.xml:300(para)
|