Hi everyone, the second day of the online summer training at dgplug.org was as exciting as the first one……
This session was taken by kushal. He taught us FHS (Filesystem Hierarchy Standard).
FHS is the way in which Linux maintains its system files and folders. Having a look at it, we find that they are quite different from that of windows. Note that all files and folders appear under root ‘/ ‘ :
- /bin : This folder contains all commands used by all users such as cd, ls, mv, rm.
- /dev : Linux loads the hardware devices here. The devices can found as files here.
- /home : This is the home directory for users.
- lost+found : This folder is from the os and as the name suggests, it keeps files which may get deleted in the process.
- /mnt : Used to mount other file systems such as a network file system.
- /proc : This is a virtual file system which gives runtime process information.
- /sbin : Special commands for system administrators are kept here.
- /srv : Services specific data from the system.
- /tmp : All applications keep temporary files here.
- /var : Contains variable data files.
- /boot : Everything required for boot process resides here. Also includes some configuration files.
- /etc : Contains all configurations files. No binary files or other files go there. They are static and change is not necessary unless you are changing some configurations.
- /lib : Contains all the libraries.
- /media : Mounts all removable devices.
- /opt : To keep additional softwares.
- /root : This is the home folder of the root user.