Common UNIX directories




System configuration files are stored here.


This directory holds binaries that must be accessible at all times and that ordinary users are likely to run.


This directory is similar to /bin, but these binaries are likely to be used only by the system administrator.


Critical library files reside here.


This directory holds system boot files. These files may include the kernel, the boot loader, and similar files.


This directory tree holds extended system files, including its own /usr/bin, /usr/sbin, and /usr/lib directories. These files aren't necessary for basic system operation, but they may include program files for word processors, Web browsers, graphics programs, server programs, and other tools important to users.


This directory tree holds locally compiled programs in a directory that can be protected from package-management tools or system reinstallation.


Third-party commercial applications typically reside in this directory.


System files of a transient or variable nature reside here, such as log files, mail queues, and databases.

/home or /users

Each user receives a separate subdirectory of this directory as a home directory.


This directory is the root user's home directory.


This directory is temporary "scratch space" for all users.

/mnt or /media

These directories or their subdirectories hold removable media, such as DVD-ROMs or flash disks, although some systems place removable media elsewhere.


UNIX device files reside in this directory, enabling programs to access hardware devices.

It isn't comprehensive, but it covers the most important directories that exist on most UNIX systems. Some of these directories can be separated into their own volumes. However, some—in particular, /etc, /bin, /sbin, /lib, and /dev—should never be placed on separate volumes. UNIX relies on the contents of these directories to perform critical tasks, including mounting other volumes. For instance, the mount command is likely to reside in /bin, and /dev holds the device files needed to mount a volume. (Some UNIX variants create a dynamic /dev file system, so it may be a separate file system but not a separate volume.)

posted on 2009-02-18 16:10  iceboundrock  阅读(333)  评论(0编辑  收藏  举报