Saturday, December 19, 2009

File System Hierarchy

  • The Filesystem Hierarchy Standard (FHS) defines the main directories and their contents in Linux operating systems
  • All files and directories appear under the root directory "/", even if they are stored on different physical devices
  • Single rooted inverted tree like structure
  • Begins at root directory (/)

 Directory Description 
 / Primary hierarchy root and root directory of the entire file system hierarchy
 /home, /root  Home Directories
 /bin, /usr/bin, /usr/local/bin User Executables
 /sbin, /usr/sbin, /usr/local/sbin Executables used by root user
 /etc Configuration files
 /tmp Temporary files 
 /boot Kernel and Boot loaders 
 /var, /srv Server data 
 /proc, /sys System information 
 /dev Devices attached to the system
 /lib, /usr/lib, /usr/local/lib Shared libraries needed to execute binaries 
 /opt Provides storage for large, static application packages
 /media, /mnt Mount points 

Absolute path - Complete road map to file location (/usr/share/doc/HTML/index.html)
Relative path - Specify location relative to your current working directory (index.html)

No comments:

Post a Comment