On the 2nd day of my Summer Training @DGPLUG, i learnt about FHS(File Hierarchy standard). FHS is the way in which Linux maintains its system files and folders which is completely different from that of windows.
Note that all files and folders appear under root ‘/ ‘ :
- /bin : This folder contains all command binaries used by all users such as cd, ls, mv, rm.
- /dev : Linux loads the hardware devices in this folder and those hardware are visible as files here.
- /home : This is the home directory for users containing saved files.
- lost+found : This is a system folder which keeps files which might have been deleted during some malfunctioned process.
- /mnt : Used to mount other filesystems temporarily.
- /proc : This is a virtual file-system which gives information about runtime process.
- /sbin : Important command binaries for system administrators are kept here. e.g., init, ip, mount.
- /srv : It contains services’ specific data from the system.
- /tmp : It contains temporary files stored by different applications here. These files are temporary and stored in between system reboots.
- /var : Contains variable data files whose data keep changing explicitly during normal system runtime..
- /boot : Everything required for boot process resides here including boot loader files and kernels. It also contains certain 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 : Its a library containing all the binaries required in /bin/.
- /media : Mounts all removable media.
- /opt : To keep additional softwares.
- /root : This is the home folder of the root user.