Linux Filesystem Hierarchy Standard (FHS)
====================================================app
Directory Required? Use
/bin Y Important system binary files.
/boot Y Files required to boot the system.
/dev Y Devices.
/etc Y System configuration files.
/home N Directories for user files.
/lib Y Standard libraries.
/media Y A place for removable media to be mounted, with separate subdirectories for each media type supported by the system.
/mnt Y A convenient point to temporarily mount devices, such as CD-ROMs and flash memory sticks.
/opt Y Additional application software.
/root N Files for the root user.
/sbin Y Important system binary files that are required during system startup.
/srv Y Read-only data for services provided by this system.
/tmp Y Temporary files.
/usr Y A secondary hierarchy. Traditionally user files were also stored here, but that is now considered bad practice, and /usr should not be writable by ordinary users.
/var Y Variable data, such as log files.
/proc N A Pseudo filesystem, providing a mapping into the current running system.ide
(/usr這個目錄有時讓人有點費解,不過習慣就好。好比找可執行文件的話/bin和/usr/bin中都要去找找。本身寫的程序的話一般放在~/bin中。本身的lib也應該放在~/lib中。)ui
reference:this
Beginning Linux Programming, 4threm