file Standard
file Standard
The Linux File Hierarchy Structure defines the directory structure and directory
contents in linux operating systems. It is maintained by the Linux Foundation.
1. / (Root) : Primary hierarchy root and root directory of the entire file system
hierarchy.
Every single file and directory starts from the root directory
Only root user has the right to write under this directory
/root is root user’s home directory, which is not same as /
2. /bin : Essential command binaries that need to be available in single user mode;
for all users, e.g., cat, ls, cp.
Contains binary executables
/bin: This directory includes user executable files.
These include terminal devices, usb, or any device attached to the system.
/dev: It includes the device file for all hardware devices connected to the system.
These aren't device drivers; instead, they are files that indicate all devices on the
system and provide access to these devices.
/etc: It includes the local system configuration files for the host system.
6. /home : Users’ home directories, containing saved files, personal settings, etc.
/home: The home directory storage is available for user files. All users have a
subdirectory inside /home.
o /lib: It includes shared library files that are needed to start the system.
The linux commands located under this directory are used typically by system
aministrator, for system maintenance purpose.
/sbin: These are system binary files. They are executables utilized for system
administration
12. /tmp : Temporary files. Often not preserved between system reboots, and may
be severely size restricted.
14. /proc : Virtual filesystem providing process and kernel information as files. In
Linux, corresponds to a procfs mount. Generally automatically generated and
populated by the system, on the fly.
Contains information about system process.
15/media: A place for mounting external removable media devices like USB
thumb drives that might be linked to the host.
16. /opt: It contains optional files like vendor supplied application programs
that must be placed here..
17./usr: They are read-only and shareable files, including executable libraries and
binaries, man files, and several documentation types.
18./var: Here, variable data files are saved. It can contain things such as MySQL,
log files, other database files, email inboxes, web server data files, and much more.