The root directory is as followsdirectories 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.
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.
/bin are some of the instructions of the system. The bin for binary shorthand mainly places some of the system's necessary execution files such as: Cat, CP, chmod DF, DMESG, gzip, kill, LS, mkdir, more, Mount, RM, Su, tar, etc. /sbin is generally referred to as Superuser instructions. There are some prerequisites for system management such as: Cfdisk, dhcpcd, Dump, E2FSCK, Fdisk, Halt, Ifconfig, Ifup, Ifdown, Init, Insmod, Lilo, Lsmod, MKE2FS, Modprobe, Quotacheck, reboot, Rmmod, RunLevel, shutdown and so on. /usr/bin is a running script for some of the software you install later. Some of the essential executable files for application software tools such as C + +, g++, GCC, Chdrv, diff, Dig, Du, eject, elm, free, gnome*, gzip, htpasswd, KFM, Ktop, last, less, Locale, M4, make, man, Mcopy, NcFTP, newaliases, nslookup passwd, quota, smb*, wget, etc. /usr/sbin places some user-installed prerequisites for system administration such as: DHCPD, HTTPD, IMAP, IN.*D, inetd, LPD, named, Netconfig, NMBD, samba, sendmail, squid, Swap, TCPD, tcpdump and so on. /usr/bin is used for distribution Manager (such as Ubuntu apt, etc.) to store the path of the application it manages,/usr/sbin relationship with/usr/bin similar to/bin and/sbin /usr/local/bin is used to store users ' own programs (such as their own compiled packages), and is not controlled by the bundle manager. If the user puts their own program under/usr/bin, it may be modified or deleted in the future by the package Manager.
Mac Introduction (vi)--MAC root directory Analysis