In Linux and Unix everything is a file. Directories are files, files are files, and devices are files. Devices are usually referred to as nodes; however, they are still files.
Linux and Unix file systems are organized in a hierarchical, tree-like
structure. The highest level of the file system is the /
or root directory. All other files and directories exist under the root
directory. For example, /home/konqi/kubuntu.odt
shows
the correct full path, or absolute path, to the kubuntu.odt
file that exists in the konqi
directory, which is under
the home
directory, which in turn is under the root
(/
) directory.
Underneath the root (/
) directory is a set of important
directories common to most Linux distributions. The following is a listing of
common directories that are directly under the root (/
)
directory:
/bin
Important commands, which historically have been binary, but may also be shell scripts.
/boot
Boot configuration files, kernels, and other files needed at boot time.
/dev
Τα αρχεία συσκευών (device)
/etc
Αρχεία ρυθμίσεων, σενάρια εκκίνησης, κ.τ.λ. (etc).
/home
Ο κεντρικός κατάλογος "Σπίτι" (Home ) για τους διάφορους χρήστες.
/initrd
Χρησιμοποιείται όταν δημιουργείτε ένα initrd, δηλαδή ένα προσαρμοσμένο δίσκο εκκίνησης από τη μνήμη RAM. (initial RAM Disk)
/lib
Βιβλιοθήκες του συστήματος (emphasis>lib
/lost+found
Provides a lost+found system for files that exist under the
root (/
) directory.
/media
Automatically mounted (loaded) removable media such as CDs, digital cameras, etc.
/mnt
Manually mounted filesystems on your hard drive.
/opt
Provides a location for optional (3rd party) applications to be installed; these are usually statically compiled and can be used in other versions or Linux distributions.
/proc
Special dynamic directory that maintains information about the state of the system, including currently running processes.
/root
Ο κεντρικός καταλογος-σπίτι για τον χρήστη Root. (Στα αγγλικά διαβάζεται "slash-root" )
/sbin
Σημαντικά εκτελέσιμα αρχεία (συντομογραφία του system binaries) και σενάρια, που συνήθως προορίζονται για να εκτελούνται απο τον χρήστη root.
/srv
Μπορεί να περιέχει αρχεία τα οποία διαμοιράζονται (served) σε άλλα συστήματα.
/sys
Παρόμοιο με το σύστημα αρχείων /proc, αλλα περιέχει πληροφορίες συστήματος (system) που δεν σχετίζονται με τις διεργασίες που εκτελούνται.
/tmp
Προσωρινά (temporary) αρχεία.
/usr
Applications and read-only files that are mostly available for all users to access.
/var
variable files such as logs and databases.