linux-directories

Filesystem Hierarchy Standard (FHS) is a reference describing the conventions used for the layout of Unix-like systems.

Directory
For?

/bin

Store binaries like cat,ls,cp

/sbin

Store system binaries only system admin can use

/boot

Contains files to boot OS

/dev

Device files (mouse,keyboard...)

/etc

System-wide configurations

/lib

Essential files used by /bin

/media

where the system mounts removable media

/mnt

for stuff user mounts themselves

/opt

third party applications like Google Chrome , Skype ...

/proc

virtual (not real) file generated by kernel about the system and running processes

/root

home directory for root user

/run

Stores volatile runtime data (eg. process IDs (PIDs)) only valid for the current boot session

/srv

store service-specific data for servers, such as web server content, FTP files

/sys

Provides a filesystem-like interface to the kernel

/tmp

store temporary files

/usr

stores user-level programs, libraries, and application data, not essential for basic system operation but are necessary for additional functionality and applications.

/var

for files that are expected to increase in size , eg.logs

/home

Stores each user's personal files

Last updated