|
26.
|
|
|
File and Directory Commands
|
|
|
|
Skráa og Möppu skipanir
|
|
Translated and reviewed by
Freyr Gunnar Ólafsson
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:75(title)
|
|
27.
|
|
|
cd
|
|
|
|
cd
|
|
Translated and reviewed by
Freyr Gunnar Ólafsson
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:78(title)
|
|
28.
|
|
|
The <command>cd</command> command changes directories. When you open a terminal you will be in your home directory. To move around the file system you will use <command>cd</command>.
|
|
|
|
Skipunin <command>cd</command> skiptir um möppu. Þegar þú opnar skel ert þú staðsettur í heimamöppunni þinni. Til að færa þig um skráarkerfið notar þú <command>cd</command>.
|
|
Translated and reviewed by
Stefán Sigurjónsson
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:79(para)
|
|
29.
|
|
|
To navigate into the root directory, type: <screen>cd /</screen>
|
|
|
|
Til þess að komast í rótina, sláðu inn: <screen>cd /</screen>
|
|
Translated and reviewed by
Baldur
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:88(para)
|
|
30.
|
|
|
To navigate to your home directory, type: <screen>cd</screen> or <screen>cd ~</screen>
|
|
|
|
Til þess að komast í heimamöppuna, sláðu inn: <screen>cd</screen> eða <screen>cd ~</screen>
|
|
Translated and reviewed by
Baldur
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:94(para)
|
|
31.
|
|
|
The <command>~</command> character represents the current user's home directory. As seen above, <command>cd ~</command> is equivalent to <command>cd /home/username/</command>. However, when running a command as root (using <command>sudo</command>, for example), <command>~</command> points instead to <filename class="directory">/root</filename>. When running a command with <command>sudo</command>, the full path to your home directory must be given.
|
|
|
|
Stafurinn <command>~</command> táknar heimamöppu núverandi notanda. Eins og sést hér að ofan er <command>cd ~</command> jafngildi <command>cd /home/notandanafn</command>. Ef þú hinsvegar keyrir skipun sem rót (t.d. með <command>sudo</command>) vísar <command>~</command> á <filename class="directory">/root</filename>. Þegar þú keyrir skipun með <command>sudo</command> þarftu að gefa upp fulla slóð á heimamöppuna.
|
|
Translated and reviewed by
Stefán Sigurjónsson
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:100(para)
|
|
32.
|
|
|
To navigate up one directory level, type: <screen>cd ..</screen>
|
|
|
|
Til að fara upp um eina möppu skrifaðu: <screen>cd ..</screen>
|
|
Translated and reviewed by
Baldur
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:111(para)
|
|
33.
|
|
|
To navigate to the previous directory (or back), type: <screen>cd -</screen>
|
|
|
|
Til að komast í fyrri möppu(eða til baka), sláðu inn: <screen>cd -</screen>
|
|
Translated and reviewed by
jarnkarlinn
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:117(para)
|
|
34.
|
|
|
To navigate through multiple levels of directories at once, specify the full directory path that you want to go to. For example, type: <screen>cd /var/www</screen> to go directly to the <filename class="directory">/www</filename> subdirectory of <filename class="directory">/var/</filename>. As another example, type: <screen>cd ~/Desktop</screen> to move you to the <filename class="directory">Desktop</filename> subdirectory inside your home directory.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:124(para)
|
|
35.
|
|
|
pwd
|
|
|
|
pwd
|
|
Translated and reviewed by
jarnkarlinn
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:141(title)
|