|
44.
|
|
|
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.
|
|
|
|
Skipunin <command>mv</command> færir skrár yfir á annan stað, eða endurnefnir þær. Til dæmis: <screen>mv foo bar</screen> breytir nafninu á skránni <filename>foo</filename> í <filename>bar</filename>. <screen>mv foo ~/Desktop</screen> færir hins vegar skránna <filename>foo</filename> yfir á <filename class="directory">skjáborðið þitt</filename> án þess að breyta nafninu á henni.
|
|
Translated and reviewed by
Baldur
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:187(para)
|
|
45.
|
|
|
rm
|
|
|
|
rm
|
|
Translated and reviewed by
Freyr Gunnar Ólafsson
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:200(title)
|
|
46.
|
|
|
<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> er notað til að eyða skrám. <screen>rm foo</screen> eyðir skránni <filename>foo</filename> úr núverandi möppu.
|
|
Translated and reviewed by
Gling Gling
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:201(para)
|
|
47.
|
|
|
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>
|
|
|
|
Skipunin <command>rm</command> fjarlægir vanalega ekki möppur. Ef þú vilt fjarlægja möppu þá verðurðu að bæta við valkostinum <command>-R</command>. Skipunin <screen>rm -R foobar</screen> eyðir til dæmis möppunni foobar, <emphasis role="strong">og öllu innihaldi hennar!</emphasis>
|
|
Translated and reviewed by
Baldur
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:206(para)
|
|
48.
|
|
|
mkdir
|
|
|
|
mkdir
|
|
Translated and reviewed by
jarnkarlinn
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:215(title)
|
|
49.
|
|
|
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.
|
|
|
|
Skipunin <command>mkdir</command> gerir þér kleift að skapa möppur. Ef þú til dæmis skrifar : <screen>mkdir tonlist</screen> myndast mappa sem heitir <filename class="directory">tonlist</filename> í núverandi möppu.
|
|
Translated and reviewed by
Baldur
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:216(para)
|
|
50.
|
|
|
System Information Commands
|
|
|
|
Kerfis Upplýsinga Skipanir
|
|
Translated and reviewed by
jarnkarlinn
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:226(title)
|
|
51.
|
|
|
df
|
|
|
|
df
|
|
Translated and reviewed by
jarnkarlinn
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:229(title)
|
|
52.
|
|
|
The <command>df</command> command displays filesystem disk space usage for all partitions. <screen>df -h</screen> will give information using megabytes (M) and gigabytes (G) instead of blocks (<emphasis role="strong">-h</emphasis> means "human-readable").
|
|
|
|
Skipunin <command>df</command> birtir hve stóran hlut skráakerfið notar á hverri deild. <screen>df -h</screen> birtir upplýsingarnar með því að nota megabæt (M) og gígabæt (G) í staðin fyrir að mæla þær í bálkum (<emphasis role="strong">-h</emphasis> stendur fyrir „human-readable“ sem á við að þetta eigi að vera auðlesanlegt).
|
|
Translated and reviewed by
Baldur
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:230(para)
|
|
53.
|
|
|
free
|
|
|
|
eftir
|
|
Translated and reviewed by
Baldur
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:240(title)
|