A Linuxban és a Unixban minden fájl. A könyvtárak fájlok, a fájlok is fájlok és az eszközök is fájlok. Az eszközöket általában csomópontoknak nevezik, de valójában azok is fájlok.
A Linux és Unix fájlrendszerei hierarchikus szerkezetűek, amely egy fához hasonlítható. A legmagasabb szintjük a /
vagy más néven a gyökérkönyvtár. Minden más fájl és könyvtár ez alatt található. Például a /home/konqi/kubuntu.odt
mutatja a kubuntu.odt
fájl teljes, abszolút elérési útnak is nevezett elérési útját. A fájl a konqi
könyvtárban van a home
könyvtár alatt, amely pedig a gyökérkönyvtár (/
) alatt.
A gyökérkönyvtár (/
) alatt több fontos könyvtár is van, amelyek megtalálhatók a legtöbb Linux disztribúcióban. A gyökérkönyvtár (/
) alatt közvetlenül elhelyezkedő általános könyvtárak listája az alábbi:
/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
The device files.
/etc
Configuration files, startup scripts, etc.
/home
Home directories for different users.
/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.