Linux Filesystem Hierarchy: The Linux Documentation Project
Linux Filesystem Hierarchy: The Linux Documentation Project
05/11/2005
cat hostname rm
chgrp kill rmdir
chmod ln sed
chown login sh
ls stty
cp
mkdir
date su
mknod
dd more sync
df mount true
dmesg mv umount
echo ps uname
false pwd
4
1. /bin detail
8
2. /boot … detail
9
3. /dev
10
3. /dev … detail
11
4. /etc
12
4. /etc … detail
/etc/X11/ : contains all the configuration files for the X Window
System
/etc/X11/XF86Config, /etc/X11/XF86Config-4 : 'X' configuration
file
/etc/ftpchroot : List of ftp users that need to be chrooted
/etc/ftpaccess : Determines who might get ftp-access to your
machine.
/etc/gateways : Lists gateways for 'routed'
/etc/group, /etc/passwd. lists the configured user groups and
who belongs to them.
/etc/hostname : Contains the hostname of your machine
/etc/host.conf : Determines the search order for look-ups
13
4. /etc … detail
14
5. /home
15
6. /initrd
16
7. /lib
17
7. /lib … detail
/lib/'machine-architecture‘ : Contains platform/architecture dependent
libraries.
/lib/iptables : iptables shared library files.
/lib/kbd : Contains various keymaps.
/lib/modules/'kernel-version‘ : The home of all the kernel modules. The
organisation of files here is reasonably clear so no requires no elaboration.
/lib/modules/'kernel-version'/isapnpmap.dep : has details on ISA based
cards, the modules that they require and various other attributes.
/lib/modules/'kernel-version'/modules.dep : lists all modules dependencies.
This file can be updated using the depmod command.
/lib/modules/'kernel-version'/pcimap : is the PCI equivalent of the
/lib/modules/'kernel-version'/isapnpmap.dep file.
/lib/modules/'kernel-version'/usbmap : is the USB equivalent of the
/lib/modules/'kernel-version'/isapnpmap.dep file.
/lib/oss : All OSS (Open Sound System) files are installed here by default.
/lib/security : PAM library files.
18
8. /lost+found
19
9. /media
20
10. /mnt
21
11. /opt
22
12. /proc
23
13. /root
24
14. /sbin
25
14. /sbin … detail
26
14. /sbin … detail
27
15. /usr
28
16. /var
29