Appendix A. Linux Directory Tree

Table A-1 describes the directories in the Linux directory tree.

Table A-1.  The Linux Directory Tree

Directory

Description

/bin

Programs and scripts essential to system startup

/boot

Boot information, including the kernel

/dev

Device files

/etc

Configuration files

/home

Users’ home directories

/lib

Libraries, modules, and other object files

/lib/modules

Loadable kernel modules

/lost+found

Recovered data from bad clusters

/mnt

Temporarily mounted filesystems

/proc

Kernel pseudo-directory that provides access to kernel information and configuration items

/root

System administrator’s home directory

/sbin

System administration programs and scripts essential to system startup

/tmp

Temporary files, which are automatically deleted by Red Hat Linux

/usr/bin

Programs and scripts not essential to system startup

/usr/etc

Configuration files

/usr/games

Game files

/usr/include

C/C++ header files

/usr/lib

Libraries

/usr/local

Locally defined directory tree

/usr/sbin

System administration programs and scripts not essential to system start up

/usr/share

Shared files

/usr/share/doc

Documentation (formerly residing in /usr/doc)

/usr/share/man

Manpages

/usr/src

Source files

/usr/src/linux

Linux kernel source

/usr/X11R6

X-related files

/var

Dynamic files, such as log files and spool files

For more information on the Linux directory tree, see the current ...

Get Learning Red Hat Linux, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.