Linux File System Directory Structure with Examples

History of Linux

In 1990, Linus Torvalds, a graduate student from University of Helsinky designed a UNIX like darnel on 386 Intel machine and gave this to Open Source Foundation (OSF).

  • Features of Linux
  • Open Source
  • Free software along with the source code and documentation.
  • Multitasking
  • Capable of running multiple applications and process at the same time.
  • Multi-user Portability
  • Can be installed on all hardware architecture.
  • Scalability
  • Same operating system canbe used on a desktop to a super computer.
  • Reliability
  • Large servers have been successfully being running without a single second of down time.
  • Security
  • Inbuilt firewall (liptables) and SELinux.

Linux File System Hierarchy Standard (FHS)

FHS

/(Slash)
  • This directory is called as the ‘root’ directory.
  • It is at the top of the the file system structure.
  • All other directories are placed under it.
/root
  • This is the default home directory of the root.
  • Note : In Linux / Unix the administrator is called as root.
/home
  • It contains the home directories of all users (similar to ‘Documents and Setting’ folder in Windows).
  • When any user logs in the current working directory by default is the user home directory.
/sbin
  • Sbin stands for system binary.
  • It contains essential system commands which can only be used by the superuser (root).
  • Example : fdisk, dump, etc.
/Boot
  • It contains the kernel, which is the core of the operating system.
  • It also contains the files related for booting the OS such as the Boot Loader.
/bin
  • Bin stands for binary
  • It contains essential commands which are used by all users.
  • Example : ping, cat , chmod, etc.
/usr
  • Usr stands for unix system resources.
  • It contains the programs and applications which are available for users (similar to program files in Windows).
/var
  • Var stands for variable
  • It contains variable information, such as logs and print queues.
/dev
  • Dev stands for device.
  • It contains information about all hardware devices.
/etc
  • Etc stands for etcetera
  • Contains all the configuration files.
/opt
  • Opt stands for optional.
  • It generally contains the third party software’s.
  • Example : Open Office, Kaspersky Antivirus etc.
/media
  • It is the default mount point for removable storage media such as cdrom/dvd and pendrives, etc.

Congratulations now you have learned Linux FSH.

Hot Right Now

Related Post

COMMENTS