Which directory contains the Linux kernel?
This section is for additional requirements and recommendations that only apply to a specific operating system. The material in this section should never conflict with the base standard. Show
6.1. LinuxThis is the annex for the Linux operating system. 6.1.1. / : Root directoryOn Linux systems, if the kernel is located in 6.1.2. /bin : Essential user command binaries (for use by all users)Linux systems which require them place these additional files into
6.1.3. /dev : Devices and special filesThe following devices must exist under
All data written to this device is discarded. A read from this device will return an EOF condition. /dev/zero This device is a source of zeroed out data. All data written to this device is discarded. A read from this device will return as many bytes containing the value zero as was requested. /dev/tty
This device is a synonym for the controlling terminal of a process. Once this device is opened, all reads and writes will behave as if the actual controlling terminal device had been opened. RationalePrevious versions of the FHS had stricter requirements for 6.1.4. /etc : Host-specific system configurationLinux systems which require them place these additional files into
6.1.5. /proc : Kernel and process information virtual filesystemThe 6.1.6. /sbin : Essential system binariesLinux systems place commands relating to filesystem maintenance and boot loader management
into Optional files for
6.1.7. /sys : Kernel and system information virtual filesystemThe 6.1.8. /usr/include : Header files included by C programsThese symbolic links are required if a C or C++ compiler is installed and only for systems not based on glibc. /usr/include/asm -> /usr/src/linux/include/asm- 6.1.9. /usr/src : Source codeFor systems based on The only source code that should be placed in a specific location is the Linux kernel source code. It is located in If a C or C++ compiler is installed, but the complete Linux kernel source code is not installed, then the include files from the kernel source code must be located in these directories: /usr/src/linux/include/asm-
Note
RationaleIt is important that the kernel include files be located in
6.1.10. /var/spool/cron : cron and at jobsThis directory contains the variable data for the cron and at programs. |