|
33.
|
|
|
<command>mv</command>: The <command>mv</command> command will move a file to a different location or will rename a file (<acronym>mv</acronym> stands simply for "move"). Examples:
|
|
|
|
(no translation yet)
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:227(para)
|
|
34.
|
|
|
To rename a file named <filename>file</filename> to <filename>foo</filename>, type: <screen>mv file foo</screen>.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:236(para)
|
|
35.
|
|
|
To move the file <filename>foo</filename> to your <filename class="directory">Desktop</filename>, type: <screen>mv foo ~/Desktop</screen>. This will move foo but will not rename it. You must specify a new file name to rename a file.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:242(para)
|
|
36.
|
|
|
If you are using <command>mv</command> with <command>sudo</command> you will not be able to use the <emphasis role="strong">~</emphasis> shortcut, but will have to use the full pathnames to your files. This is because when you are working as root, <emphasis role="strong">~</emphasis> will refer to the root account's home directory, not your own.
|
|
|
|
Ако ја користите <command>mv</command> со <command>sudo</command> нема да може да ја користите кратенката <emphasis role="strong">~</emphasis>, туку ќе мора да ја користите целосната патека до вашите датотеки. Причината за ова е тоа што кога работите како root, кратенката <emphasis role="strong">~</emphasis> ќе се однесува на домашниот директориум на root корисникот, а не на вашиот.
|
|
Translated and reviewed by
Мартин Спасовски
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:250(para)
|
|
37.
|
|
|
rm
|
|
|
|
rm
|
|
Translated and reviewed by
Мартин Спасовски
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:216(title)
|
|
38.
|
|
|
The <command>rm</command> will remove or delete a file in your directory (<acronym>rm</acronym> stands simply for "remove"). It will not work on directories which have files in them. To remove directories, you can use <command>rm -r</command>. The <emphasis>r</emphasis> stands for <emphasis>recursive</emphasis>. For example: <screen>rm -r foo</screen> will remove the directory named foo and all of its contents.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:263(para)
|
|
39.
|
|
|
Using <command>rm -r</command> will delete a complete directory and everything in it without further questions, so be careful with this command.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:273(para)
|
|
40.
|
|
|
mkdir
|
|
|
|
mkdir
|
|
Translated and reviewed by
Мартин Спасовски
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:231(title)
|
|
41.
|
|
|
The <command>mkdir</command> command will allow you to create directories (<acronym>mkdir</acronym> stands simply for "make directory"). For example, typing: <screen>mkdir music</screen> will create a music directory in the current directory.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:280(para)
|
|
42.
|
|
|
System Information Commands
|
|
|
|
Команди за информации за системот
|
|
Translated and reviewed by
Мартин Спасовски
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:242(title)
|