|
39.
|
|
|
The <command>ls</command> command outputs a list of the files in the current directory. For example, typing <screen>ls ~</screen> will show you the files that are in your home directory.
|
|
|
|
<command>ls</command> skipunin sýnir lista skráa í viðkomandi möppu. Til dæmis sýnir <command>ls ~</command> þér skrár í heimamöppunni þinni.
|
|
Translated and reviewed by
Stefán Sigurjónsson
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:161(para)
|
|
40.
|
|
|
Used with the <command>-l</command> options, <command>ls</command> outputs various other information alongside the filename, such as the current permissions on the file, and the file's owner.
|
|
|
|
Ef þú notar <command>-l</command> stillinguna sýnir <command>ls</command> ýmsar upplýsingar sem fylgja skránum, til dæmis heimildir og eiganda.
|
|
Translated and reviewed by
Stefán Sigurjónsson
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:167(para)
|
|
41.
|
|
|
cp
|
|
|
|
cp
|
|
Translated and reviewed by
jarnkarlinn
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:175(title)
|
|
42.
|
|
|
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.
|
|
|
|
Skipunin <command>cp</command> býr til afrit af skrám. Ef þú skrifar til dæmis: <screen>cp foo bar</screen> þá býr tölvan til afrit af <filename>foo</filename> sem heitir <filename>bar</filename>. Skráin <filename>foo</filename> mun haldast óbreytt.
|
|
Translated and reviewed by
Baldur
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:176(para)
|
|
43.
|
|
|
mv
|
|
|
|
mv
|
|
Translated and reviewed by
jarnkarlinn
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:186(title)
|
|
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)
|