|
28.
|
|
|
cp
|
|
|
|
cp
|
|
Translated and reviewed by
Daniel Nylander
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:191(title)
|
|
29.
|
|
|
The <command>cp</command> command makes a copy of a file. For example, type: <screen>cp foo bar</screen> to make an exact copy of <filename>foo</filename> and name it <filename>bar</filename>. <filename>foo</filename> will be unchanged.
|
|
|
|
Kommandot <command>cp</command> skapar en kopia av en fil. Skriv till exempel: <screen>cp foo bar</screen> för att göra en exakt kopia av <filename>foo</filename> och ge kopian namnet <filename>bar</filename>. <filename>foo</filename> kommer förbli oförändrad.
|
|
Translated and reviewed by
Håkan Hagman
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:192(para)
|
|
30.
|
|
|
mv
|
|
|
|
mv
|
|
Translated and reviewed by
Daniel Nylander
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:202(title)
|
|
31.
|
|
|
The <command>mv</command> command moves a file to a different location or will rename a file. Examples are as follows: <screen>mv foo bar</screen> will rename the file <filename>foo</filename> to <filename>bar</filename>. <screen>mv foo ~/Desktop</screen> will move the file <filename>foo</filename> to your <filename class="directory">Desktop</filename> directory but will not rename it.
|
|
|
|
Kommandot <command>mv</command> flyttar en fil till en annan plats eller byter namn på en fil. Här är några exempel: <screen>mv foo bar</screen> kommer att byta namn på filen <filename>foo</filename> till <filename>bar</filename>. <screen>mv foo ~/Skrivbord</screen> kommer att flytta filen <filename>foo</filename> till katalogen <filename class="directory">Skrivbord</filename> i din hemkatalog men kommer inte att byta namn på den.
|
|
Translated and reviewed by
Håkan Hagman
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:203(para)
|
|
32.
|
|
|
rm
|
|
|
|
rm
|
|
Translated and reviewed by
Daniel Nylander
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:216(title)
|
|
33.
|
|
|
<command>rm</command> is used to delete files. <screen>rm foo</screen> deletes the file <filename>foo</filename> from the current directory.
|
|
|
|
<command>rm</command> används för att radera filer. <screen>rm foo</screen> raderar filen <filename>foo</filename> från den nuvarande katalogen.
|
|
Translated and reviewed by
Håkan Hagman
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:217(para)
|
|
34.
|
|
|
By default, <command>rm</command> will not remove directories. To remove a directory, you must use the <command>-R</command> option. For example, <screen>rm -R foobar</screen> will remove the directory foobar, <emphasis role="strong">and all of its contents!</emphasis>
|
|
|
|
Som standard kommer inte <command>rm</command> att ta bort kataloger. För att ta bort en katalog, måste du använda flaggan <command>-R</command>. Till exempel: <screen>rm -R foobar</screen> kommer att ta bort katalogen foobar, <emphasis role="strong">och allt innehåll som finns i katalogen!</emphasis>
|
|
Translated and reviewed by
Håkan Hagman
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:222(para)
|
|
35.
|
|
|
mkdir
|
|
|
|
mkdir
|
|
Translated and reviewed by
Daniel Nylander
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:231(title)
|
|
36.
|
|
|
The <command>mkdir</command> command allows you to create directories. For example, typing: <screen>mkdir music</screen> will create a directory named <filename class="directory">music</filename> in the current directory.
|
|
|
|
Kommandot <command>mkdir</command> låter dig skapa kataloger. Skriv till exempel, <screen>mkdir musik</screen> för att skapa en katalog som heter <filename class="directory">musik</filename> i den aktuella katalogen.
|
|
Translated and reviewed by
Håkan Hagman
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:232(para)
|
|
37.
|
|
|
System Information Commands
|
|
|
|
Kommandon för systeminformation
|
|
Translated and reviewed by
Daniel Nylander
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:242(title)
|