Di dalam Linux dan Unix semua adalah fail. Direktori adalah fail, fail adalah fail, dan perkakasan adalah fail. Perkakasan selalunya dirujuk sebagai node; akan tetapi, ia masih fail.
Fail sistem Linux dan Unix disusun dalam hirarki, strujtur seperti pokok. Tahap tertinggi sistem fail ialah /
atau direktori akar. Kesemua fail dan direktori wujud dibawah direktori akar. Sebagai contoh, /home/konqi/kubuntu.odt
menunjukkan laluan penuh atau laluan sebenar, kepada kubuntu.odt
fail yang wujud dalam direktori konqi
, dimana ia berada dibawah direktori rumah
, sebagai balasan berada dibawah direktori akar (/
).
Dibawah direktori root (/
) telah disetkan satu direktori penting dan sudah menjadi kebiasaan pada semua linux distributor. Berikut adalan senarai direktori yang biasa digunakan dibawah direktory root (/
):
/bin
Arahan penting, secara sejarahnya telah menjadi binari, tetapi boleh jadi juga skrip cangkerang.
/boot
Fail konfigurasi Boot, kernels, dan fail lain diperlukan pada masa boot.
/dev
Fail peranti.
/etc
Fail konfigurasim skrip permulaan sistem, dll.
/home
Direktori Home untuk pengguna berlainan.
/initrd
Used when creating a customized initial RAM Disk.
/lib
System libraries.
/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 user's home directory, pronounced "slash-root".
/sbin
Important system binaries and scripts, usually intended to be run as the root user.
/srv
Can contain files that are served to other systems.
/sys
Similar to the /proc filesystem, but contains system information not related to running processes.
/tmp
temporary files.
/usr
Applications and read-only files that are mostly available for all users to access.
/var
variable files such as logs and databases.