Brief Overview: File System in Linux

The File system is used to control how data is stored and retrieved. Each file served a specific purpose. Remember one thing, Everything is a file in Linux. This blog provides a brief overview of a File System in the Linux operating system.

DirectoryDescription
/rootcontains everything in the root directory. It is the home directory of the root user.
/binUser Binaries/ Executable Files for user applications
/sbinsystem binaries for admin
/homeUsers home directory
/bootcontains files needed to boot the system. e.g. GRUB bootloader
/etccontains configuration files (host-specific). It is used to control the operation of a program. Most popular directory among users.
/etc/passwdpassword file
/etc/groupUser group file
/etc/shadowcontains shadow password suite
/etc/inittabconfiguration file for init
/devcontains device files
/varcontains variable data files
/etc/motdcontains post login message of day file
/proccontains process & kernel information
/usruser programs. It is recommended to keep Linux system files.
/libcontains essential shared libraries and kernel modules needed by the programs on the root file system
/mediaremovable devices
/selinuxSELinux configuration files. It contains all policy files and main configuration files.
/tmpcontains temporary files
/optthird party applications
/srvcontains data for servers
/mnttemporary mount directory
/runused to store temporary data

Subscribe us to receive more such articles updates in your email.

If you have any questions, feel free to ask in the comments section below. Nothing gives me greater joy than helping my readers!

Disclaimer: This tutorial is for educational purpose only. Individual is solely responsible for any illegal act.

You may also like...

Leave a Reply

Your email address will not be published.