Linux Directory Map / Structure

linux directory map structure errorbits.com

Root   Path  Description
bin/
( -> usr/bin)
Files that can be executed (binary files) used to troubleshot or debug the operating system.
boot/ Contains a minimum number of files needed by the operating system to boot – a part of bootloader, bootmanager and the kernel
dev/ Contains file representations of peripheral devices and pseudo-devices.
etc/ System configuration files for operating system and applications
home/ Contains user’s personal folders and files
lib/
( -> usr/lib)
Libraries of data used by the kernel and Linux OS (Operating System), needed to boot and to run commands from /bin and /sbin (x32 architecture)
lib64/
( -> usr/lib64)
Libraries of data used by the kernel and Linux OS (Operating System), needed to boot and to run commands from /bin and /sbin (x64 architecture)
media/ Default mounting point for removable devices (USB sticks, media players, and so on)

ROOT of filesystem tree
(is represented by a slash symbol)
/

mnt/ Used to temporary mount other file systems
opt/ Additional installed software which is not part of the operating system – 3rd party software
proc/ Contains a pseudo file system which does not exists on the harddisk, all the resources under /proc are information that the kernel presents to the user as files, this way the user can access information about hardware, processes, settings and so on. Some of the files can be modified and the effect is replicated directly into the Kernel
root/ Contains the files and folders of root user
run/ Special files for system hardware devices
sbin/
( -> usr/sbin)
Binary files that are used for system administration (can be used by root user)
srv/ Here is the server data for services provided by system
sys/ Information related to hardware and the operating system
tmp/ Here are stored the temporary files
usr/ The place where user’s applications are installed. This folder also contains a file structure.
var/ Contains variable data/data that changes very often