All the directories in the Linux system come under the root(/) directory which is represented by a forward slash (/).
Directory type | Types of files stored | |
1 | Binary directories | Contains binary or compiled source code files, eg, /bin, /sbin, etc. |
2 | Configuration directories | Contains configuration files of the system, eg, /etc, /boot. |
3 | Data directories | Stores data files, eg, /home, /root,/media, /mnt, /tmp etc. |
4 | Memory directories | files which don’t take up actual harddisk space, eg, /dev, /proc, /sys. |
5 | Usr (Unix System Resources) | Contains sharable, read only data, eg, /usr/bin, /usr/lib, etc. |
6 | var (variable directory) | Contains larger size data, eg, /var/log, /var/cache, etc. |
7 | Non-standard directories | Dir. which do not come under FHS, eg, lost+found,/run, /cdrom etc. |