Web site directory - 2. The root Directory: / /dev: system

2. The root Directory: / /dev: system device files (dev for DEVices). Some files contained by /dev are mandatory, such as /dev/null, /dev/zero, and /dev/tty. Static, unshareable. /etc: contains all configuration files specific to the computer. This directory cannot contain binary files. Static, unshareable. /home: where all the personal directories of the system’s users are located. This directory may or may not be shared (some large networks make it shareable via NFS). Your favorite application’s (like e-mail readers or browsers) configuration files are located in this directory and start with a period ( . ). For instance, the Mozilla configuration files lie in the .mozilla directory. Variable, shareable. /lib: it contains libraries which are essential to the system; it also stores kernel modules in the /lib/modules/KERNEL_VERSION sub-directory. It contains all libraries required by the binaries in the /binand /sbin directories. The optional ld* execution time linker/loader as well as the dynamically-linked C library libc.so must also reside in this directory. Static, unshareable. /mnt: directory containing the mount points for temporarily-mounted file systems such as /mnt/cdrom, /mnt/floppy, etc. The /mnt directory is also used to mount temporary directories (a USB card will be mounted in /mnt/removable, for instance). Variable, unshareable. /opt: contains packages not essential for system operation. It is reserved for add-on packages; packages such as Adobe Acrobat Reader are often installed into /opt. The FHS recommends that static files (binaries, libraries, manual pages, etc.) installed in the /opt structure be placed in /opt/package_nameand the specific configuration files in /etc/opt. /root: home directory for root. Variable, unshareable. /sbin: contains system binaries essential for system start-up. Most of these files can only be executed by root. A normal user may run them, but they might not do anything. Static, unshareable. /tmp: directory intended to contain temporary files which certain programs may create. Variable, unshareable. /usr: explained in more detail in Section 3, /usr: The Big One [403]. Static, shareable.

Leave a Reply