Download Red Hat Linux 7.3 The Official Red Hat Linux Reference Guide
Transcript
Chapter 1. File System Structure 21 Large packages that encompass many different sub-packages, each of which accomplish a particular task, also go within /opt, giving that large package a standardized way to organize itself. In this way, our sample package may have different tools that each go in their own sub-directories, such as /opt/sample/tool1 and /opt/sample/tool2, each of which can have their own bin, man, and other similar directories. 1.2.1.6. The /proc Directory The /proc directory contains special "files" that either extract information from or send information to the kernel. Due to the great variety of data available within /proc and the many ways this directory can be used to communicate with the kernel, an entire chapter has been devoted to the subject. For more information, please see Chapter 2. 1.2.1.7. The /sbin Directory The /sbin directory is for executables used only by the root user. The executables in /sbin are only used to boot and mount /usr and perform system recovery operations. The FHS says: "/sbin typically contains files essential for booting the system in addition to the binaries in /bin. Anything executed after /usr is known to be mounted (when there are no problems) should be placed in /usr/sbin. Local-only system administration binaries should be placed into /usr/local/sbin." At a minimum, the following programs should be in /sbin: arp, clock, getty, halt, init, fdisk, fsck.*, grub, ifconfig, lilo, mkfs.*, mkswap, reboot, route, shutdown, swapoff, swapon, update 1.2.1.8. The /usr Directory The /usr directory is for files that can be shared across a whole site. The /usr directory usually has its own partition, and it should be mountable read-only. At minimum, the following directories should be subdirectories of /usr: /usr |||||||||- bin dict etc games include kerberos lib libexec local