1 directories that match Unix tradition
- /bin a directory of traditional UNIX commands, such as LS,RM,MV.
- /sbin traditional UNIX Management class commands to store directories such as Fdisk,ifconfig and so on.
- /USR third-party program installation directory.
- /usr/bin,/usr/sbin,/usr/lib, where the shared library (dynamic link library) is stored in the/usr/lib directory.
- /etc. the standard UNIX system configuration file stores directories, such as user password file/etc/passwd. This directory is actually a link to/private/etc.
- /dev Device File Store directory, how to represent the/dev/disk0 of the hard disk.
- /tmp temporary file storage directory, its permissions for everyone to read and write. This directory is actually a link to/private/tmp.
- /var stores frequently changing files, such as log files. This directory is actually a link to/private/var.
2 OS X-specific directory OS X system, in addition to the standard UNIX directory, but also added a unique directory.
- /applications application directory, the default all GUI applications are installed here;
- /library system data files, Help files, documents and so on;
- /network network node storage directory;
- /system He contains only a directory called the Library, which stores most of the system's components, such as various frameworks, kernel modules, font files, and so on.
- /users Store the user's profile and configuration. Each user has its own separate directory.
- /volumes file system mount point storage directory.
- /cores the kernel dump file to store the directory. When a process crashes, a dump file is generated if the system allows it.
- The subdirectory inside the/private contains the target directory of the/TMP,/VAR,/etc and other linked directories.
Mac System directory Structure