Linux Filesystem Hierarchy

 Linux Uses Single Rooted, inverted tree-like file system hierarchy



/This is a top level directory
It is a parent directory for all other directory
It is call ROOT directory
It is represented by forward slash
C:\ of Windows
/rootIt is home directory for root user (super user)
It provides working environment for root user
C:\Documents and Settings\Administrator of windows
/homeIt is home directory for other users
It provide working environment for other users (other than root user)
C:\Documents and Settings\gyantech
/bootIt contains bootable files for Linux
Like Vmlinuz (kernel) ntoskrnl
Initrd (INITial RAM Disk) and GRUB (Grand Unifiend Boot Loader)
boot.ini, ntldr
/etcIt contains all configuration files
Like /etc/passwd --------- User Info
/etc/resolv.conf ----- Preferred DNS
/etc/dhcpd.conf ----- DHCP server
C:\windows\system32\driers\ of windows
/usrBy default software's are installed in /usr directory
(UNIX Sharable Resources)
C:\program files of windows
/optIt is optional directory for /usr
It contains third party software's
C:\program files of windows
/binIt contains commands used by all users
(Binary files)
/sbinIt contains commands used by super user (root)
super user's binary files)
/devIt contains device files
Like /dev/hda ------------ for hard disk
/ dev/cd rom ------- for CD Rom
Similar to device manager of Windows
/procIt contain process files
It contents are not permanent, they keep changing
It is also called as Virtual Directory
It file contain useful information used by OS
Like /proc/meminfo ----- Info of RAM/SWAP
/roc/cpuinfo -------- Info of CPU
/varIt is containing variable data like mails, log files
/mntIt is default mount point for any partition
It is empty by default
/mediaIt contains all removable media like pen drive, CD-ROM, Floppy Disk
/libIt contains library files which are used by OS
IT is similar to dll files of Windows
Library Files in Linux are SO (shared object) files

Comments

Popular posts from this blog

Basic Commands to Copy, Move, rename, remove files and Directories with Linux.

Basic Commands to Create files and Directories with Linux.