Because Mac belongs to a Unix-like system, Mac OS X directory = Unix System Universal Directory + unique Directory
The following is the Unix generic directory
/bin The directory where traditional Unix commands are stored, such as ls, rm, mv, etc.
/sbin Traditional unix management class commands store directories, such as fdisk, ifconfig, and so on.
/usr Third-party program installation directory.
/dev device file storage directory, how to represent /dev/disk0 of the hard disk.
/usr/bin, /usr/sbin, /usr/lib, where the shared library (dynamic link library) is stored in the /usr/lib directory.
/etc Standard Unix system configuration file storage directory, such as user password file /etc/passwd. This directory is actually a link to /private/etc.
/tmp Temporary file storage directory, whose permissions are arbitrarily read and written by everyone. 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.
etc Another way of saying, "Editable Text Configuration": Many people also see the/etc directory as a configuration file where our system programs are placed. So I often see such a directory introduction
The following is a unique directory
/Applications application directory, by default all GUI applications are installed here
/Library system data files, help files, documentation, etc.
/Network network node storage directory
/System only contains a directory called Library, which stores most of the components of the system, such as various frameworks, as well as kernel modules, font files, and so on.
/Users stores the user's profile and configuration. Each user has their own separate directory.
/Volumes File system mount point storage directory.
/cores Kernel dump file storage directory. When a process crashes, a dump file is generated if the system allows it.
The subdirectory in /private stores the target directory of the link directory such as /tmp, /var, /etc.
System directory structure for MAC OS X