|
29.
|
|
|
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.
|
|
|
|
Ο χαρακτήρας <command>~</command> αντιπροσωπεύει τον αρχικό κατάλογο του χρήστη. Όπως είδαμε παραπάνω, η εντολή <command>cd ~</command> είναι αντίστοιχη με την <command>cd /home/όνομα_χρήστη/</command>. Ωστόσο όταν εκτελούμε μια εντολή ως root (χρησιμοποιώντας την εντολή <command>sudo</command>, για παράδειγμα), ο χαρακτήρας <command>~</command> αντιπροσωπεύει τον κατάλογο <filename class="directory">/root</filename>. Όταν εκτελούμε μια εντολή με την <command>sudo</command>, πρέπει να δοθεί όλη η διαδρομή στον αρχικό σας κατάλογο.
|
|
Translated and reviewed by
Kainourgiakis Giorgos
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:100(para)
|
|
30.
|
|
|
To navigate up one directory level, type: <screen>cd ..</screen>
|
|
|
|
Για να περιηγηθείτε σε έναν κατάλογο ένα επίπεδο πάνω, εισάγετε: <screen>cd ..</screen>
|
|
Translated and reviewed by
Kainourgiakis Giorgos
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:111(para)
|
|
31.
|
|
|
To navigate to the previous directory (or back), type: <screen>cd -</screen>
|
|
|
|
Για να περιηγηθείτε σε έναν κατάλογο ένα επίπεδο πίσω, εισάγετε: <screen>cd -</screen>
|
|
Translated and reviewed by
Kainourgiakis Giorgos
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:117(para)
|
|
32.
|
|
|
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.
|
|
|
|
Για να περιηγηθείτε σε πολλαπλά επίπεδα καταλόγων την ίδια στιγμή, καθορίστε όλη την διαδρομή του καταλόγου που θα θέλατε να πάτε. Για παράδειγμα εισάγετε: <screen>cd /var/www</screen> για να πάτε κατευθείαν στον <filename class="directory">/www</filename> υποκατάλογο του <filename class="directory">/var/</filename>. Ως ένα άλλο παράδειγμα εισάγετε: <screen>cd ~/Επιφάνεια εργασίας</screen> για να περιηγηθείτε στον υποκατάλογο <filename class="directory">Επιφάνεια εργασίας</filename> που βρίσκεται μέσα στον αρχικό σας κατάλογο.
|
|
Translated and reviewed by
Kainourgiakis Giorgos
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:124(para)
|
|
33.
|
|
|
pwd
|
|
|
|
pwd
|
|
Translated and reviewed by
lefty
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:141(title)
|
|
34.
|
|
|
<application>GNOME Terminal</application> also displays this information in the title bar of its window.
|
|
|
|
Το <application>Τερματικό του GNOME</application> επίσης παρουσιάζει την πληροφορία αυτή, στην μπάρα του παραθύρου του.
|
|
Translated and reviewed by
Kainourgiakis Giorgos
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:151(para)
|
|
35.
|
|
|
The <command>pwd</command> command outputs which directory you are currently located in (<acronym>pwd</acronym> stands for <quote>print working directory</quote>). For example, typing <screen>pwd</screen> in the <filename class="directory">Desktop</filename> directory, will show <computeroutput>/home/username/Desktop</computeroutput>. <placeholder-1/>
|
|
|
|
Η εντολή <command>pwd</command> παρουσιάζει σε ποιον κατάλογο βρισκόμαστε (το <acronym>pwd</acronym> σημαίνει <quote>print working directory</quote>). Για παράδειγμα εισάγοντας την εντολή <screen>pwd</screen> στον κατάλογο <filename class="directory">Επιφάνεια εργασίας</filename>, θα παρουσιάσει <computeroutput>/home/όνομα_χρήστη/Επιφάνεια εργασίας</computeroutput>.
|
|
Translated and reviewed by
Kainourgiakis Giorgos
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:142(para)
|
|
36.
|
|
|
ls
|
|
|
|
ls
|
|
Translated and reviewed by
lefty
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:160(title)
|
|
37.
|
|
|
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> εμφανίζει μια λίστα από τα αρχεία του τρέχοντος καταλόγου. Για παράδειγμα πληκτρολογώντας <screen>ls ~</screen> θα σας εμφανίσει τα αρχεία τα οποία βρίσκονται στον αρχικό σας κατάλογο.
|
|
Translated and reviewed by
Kainourgiakis Giorgos
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:161(para)
|
|
38.
|
|
|
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.
|
|
|
|
Η εντολή <command>ls</command> όταν χρησιμοποιείται με τις επιλογές <command>-l</command> εμφανίζει διάφορες άλλες πληροφορίες σε παραβολή με το όνομα του αρχείου, όπως, για παράδειγμα τα τρέχοντα δικαιώματα χρήσης για το αρχείο και τον ιδιοκτήτη του αρχείου.
|
|
Translated and reviewed by
Kainourgiakis Giorgos
|
|
|
|
Located in
basic-commands/C/basic-commands.xml:167(para)
|