filesystem hierarchy standard in linux

in filesystem •  7 years ago 

FHS.png

Hello, friends Today we discuss Linux filesystem hierarchy (FHS).
filesystem hierarchy (FHS) create the directory structure in Linux and it is released on 3rd June 2015 and latest filesystem hierarchy (FHS) is version is 3.0.

  1. / (slash)

slash directory is called as 'root directory'.
it is the top of the file system.
all other directories are mounted under it.

  1. /root

root is the default home directory the administrator in Linux.
each and every single file and directory starts from the root directory.
in Linux /root directory is root user's home directory, which is not same to / (slash).

  1. /home

home directory stored all users personal files.
for example: /home/vikas, /home/gunwant.

  1. /boot

this directory contains booting related file
like boot loader and the intial ramdisk under /boot.

  1. /sbin

sbin stored administrative commands which are used by superuser.
like iptables,reboot,fdisk,ifconfig,swapon commands.

  1. /bin

/bin's contains those commands which are used by superuser and the normal users also.
like ps,ls,ping,grep,cp commands

  1. /usr

/usr contains the applicaitons and programs which are available for users.

  1. /var

stored informations such as logs and print queues.
/var stand for varibale files.
this includes : system log files and it stored in /var/log, lock file stored in /var/lock
and temp file stored in /var/tmp and it will neded

  1. /dev

/dev stored in device related files.
for example usb, terminal device or any other devices attached to the computers.
like /dev/tty1, /dev/usbmono

  1. /etc

/etc stored all configuration files which is related to programs.
and also stored startup and shutdown shell script
like : /etc/resolv.conf, /etc/logrotate.conf.

  1. /proc

/proc means process information it stored details abourt system process.
/proc is a virtual filesystem with text information about system resources
for example /proc/uptime.

  1. /tmp

/tmp means temporary files. this directory stored temporary files created by system and users.
all temporary files under this directroy are deleted when system is rebooted.

  1. /opt

/opt stand for optional. you can install thired party software in /opt directory.

  1. /media

it is a removable media devices. it is temporary mount directory for removable devices.

  1. /lib

/lib means system libraries. it is stroed all library files that supports the binaries located under /bin and /sbin
for example : ld* or lib.so.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Congratulations @itworld4u! You received a personal award!

1 Year on Steemit

Click here to view your Board of Honor

Support SteemitBoard's project! Vote for its witness and get one more award!

Congratulations @itworld4u! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 2 years!

You can view your badges on your Steem Board and compare to others on the Steem Ranking

Vote for @Steemitboard as a witness to get one more award and increased upvotes!