+ All Categories
Home > Documents > File System Hierarchy

File System Hierarchy

Date post: 22-May-2015
Category:
Upload: sritolia
View: 1,883 times
Download: 0 times
Share this document with a friend
Description:
Explains the file system hierarchy of linux.
44
File System Hierarchy Srikant Ritolia +91-9886579971 [email protected] Linux Users Group, Manipal October 17, 2010
Transcript
Page 1: File System Hierarchy

File System Hierarchy

Srikant Ritolia+91-9886579971

[email protected]

Linux Users Group, Manipal

October 17, 2010

Page 2: File System Hierarchy

Index1 Origin2 File System Definition3 File System Hierarchy Definition4 Flow Chart5 /bin6 /boot7 /dev8 /etc9 /home10 /media11 /mnt12 /opt13 /root14 /proc15 /sbin16 /tmp17 /usr18 /var

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 2 / 20

Page 3: File System Hierarchy

What is File System

Method of storing and organizing computer files and their data.

Essentially, it organizes these files into a database for the storage,organization, manipulation, and retrieval by the computer’s operatingsystem.

Eg:- fat, ntfs, ext4, ext3.......

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 3 / 20

Page 4: File System Hierarchy

What is File System

Method of storing and organizing computer files and their data.

Essentially, it organizes these files into a database for the storage,organization, manipulation, and retrieval by the computer’s operatingsystem.

Eg:- fat, ntfs, ext4, ext3.......

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 3 / 20

Page 5: File System Hierarchy

What is File System

Method of storing and organizing computer files and their data.

Essentially, it organizes these files into a database for the storage,organization, manipulation, and retrieval by the computer’s operatingsystem.

Eg:- fat, ntfs, ext4, ext3.......

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 3 / 20

Page 6: File System Hierarchy

What is file system hierarchy

To put it simply, it can be visualized as a tree with its roots and all.

At the top of the hierarchy is invariably the root path which isrepresented by ’/’.

All other directories are created beneath this root path in linux.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 4 / 20

Page 7: File System Hierarchy

What is file system hierarchy

To put it simply, it can be visualized as a tree with its roots and all.

At the top of the hierarchy is invariably the root path which isrepresented by ’/’.

All other directories are created beneath this root path in linux.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 4 / 20

Page 8: File System Hierarchy

What is file system hierarchy

To put it simply, it can be visualized as a tree with its roots and all.

At the top of the hierarchy is invariably the root path which isrepresented by ’/’.

All other directories are created beneath this root path in linux.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 4 / 20

Page 9: File System Hierarchy

Flow Chart

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 5 / 20

Page 10: File System Hierarchy

/bin

Bin stands for binary.

Contains the useful command which are used by everyone in terminal.

Contains shells like bash, csh etc as well as much used commands likecp, mv, rm, cat, ls.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 6 / 20

Page 11: File System Hierarchy

/bin

Bin stands for binary.

Contains the useful command which are used by everyone in terminal.

Contains shells like bash, csh etc as well as much used commands likecp, mv, rm, cat, ls.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 6 / 20

Page 12: File System Hierarchy

/bin

Bin stands for binary.

Contains the useful command which are used by everyone in terminal.

Contains shells like bash, csh etc as well as much used commands likecp, mv, rm, cat, ls.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 6 / 20

Page 13: File System Hierarchy

/boot

Contains the boot loader files.

Grub and linux kernel.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 7 / 20

Page 14: File System Hierarchy

/boot

Contains the boot loader files.

Grub and linux kernel.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 7 / 20

Page 15: File System Hierarchy

/dev

Stands for devices.

Highlights one important characteristic of the Linux filesystem -everything is a file or a directory.

No real subfolder.

When you first boot up ur computer it detects your hardware andplace folder and files representing your hardware in the dev directory.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 8 / 20

Page 16: File System Hierarchy

/dev

Stands for devices.

Highlights one important characteristic of the Linux filesystem -everything is a file or a directory.

No real subfolder.

When you first boot up ur computer it detects your hardware andplace folder and files representing your hardware in the dev directory.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 8 / 20

Page 17: File System Hierarchy

/dev

Stands for devices.

Highlights one important characteristic of the Linux filesystem -everything is a file or a directory.

No real subfolder.

When you first boot up ur computer it detects your hardware andplace folder and files representing your hardware in the dev directory.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 8 / 20

Page 18: File System Hierarchy

/dev

Stands for devices.

Highlights one important characteristic of the Linux filesystem -everything is a file or a directory.

No real subfolder.

When you first boot up ur computer it detects your hardware andplace folder and files representing your hardware in the dev directory.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 8 / 20

Page 19: File System Hierarchy

/etc

Configuration files get stored.

More importantly, the /etc/rc.d directory contains the system startupscripts.

This is a good directory to backup often. Saves lot of re-configurationlater if you re-install or lose your current installation.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 9 / 20

Page 20: File System Hierarchy

/etc

Configuration files get stored.

More importantly, the /etc/rc.d directory contains the system startupscripts.

This is a good directory to backup often. Saves lot of re-configurationlater if you re-install or lose your current installation.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 9 / 20

Page 21: File System Hierarchy

/etc

Configuration files get stored.

More importantly, the /etc/rc.d directory contains the system startupscripts.

This is a good directory to backup often. Saves lot of re-configurationlater if you re-install or lose your current installation.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 9 / 20

Page 22: File System Hierarchy

/home

Linux is a multi-user environment so each user is also assigned aspecific directory which is accessible only to them and the systemadministrator.

containing saved files, personal settings, etc.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 10 / 20

Page 23: File System Hierarchy

/home

Linux is a multi-user environment so each user is also assigned aspecific directory which is accessible only to them and the systemadministrator.

containing saved files, personal settings, etc.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 10 / 20

Page 24: File System Hierarchy

/media

Mount point for removable disk like CDROM, pendrive.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 11 / 20

Page 25: File System Hierarchy

/mnt

Mount point for temporary mounted file system.

Mounting is the process by which you make a filesystem available tothe system.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 12 / 20

Page 26: File System Hierarchy

/mnt

Mount point for temporary mounted file system.

Mounting is the process by which you make a filesystem available tothe system.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 12 / 20

Page 27: File System Hierarchy

/opt

This directory contains all the software and add-on packages that arenot part of the default installation.

Again, this directory is not used very often as it’s mostly a standard inUnix installations.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 13 / 20

Page 28: File System Hierarchy

/opt

This directory contains all the software and add-on packages that arenot part of the default installation.

Again, this directory is not used very often as it’s mostly a standard inUnix installations.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 13 / 20

Page 29: File System Hierarchy

/root

We talked about user home directories earlier and well this one is thehome directory of the user root.

Not to be confused with the system root.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 14 / 20

Page 30: File System Hierarchy

/root

We talked about user home directories earlier and well this one is thehome directory of the user root.

Not to be confused with the system root.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 14 / 20

Page 31: File System Hierarchy

/proc

pseudo file system residing in the virtual memory.

maintains highly dynamic data on the state of your operating system.

a new /proc file system is created every time your Linux machinereboots.

Everything regarding your hardware like bluetooth, different slots, busetc. is stored in it.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 15 / 20

Page 32: File System Hierarchy

/proc

pseudo file system residing in the virtual memory.

maintains highly dynamic data on the state of your operating system.

a new /proc file system is created every time your Linux machinereboots.

Everything regarding your hardware like bluetooth, different slots, busetc. is stored in it.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 15 / 20

Page 33: File System Hierarchy

/proc

pseudo file system residing in the virtual memory.

maintains highly dynamic data on the state of your operating system.

a new /proc file system is created every time your Linux machinereboots.

Everything regarding your hardware like bluetooth, different slots, busetc. is stored in it.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 15 / 20

Page 34: File System Hierarchy

/proc

pseudo file system residing in the virtual memory.

maintains highly dynamic data on the state of your operating system.

a new /proc file system is created every time your Linux machinereboots.

Everything regarding your hardware like bluetooth, different slots, busetc. is stored in it.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 15 / 20

Page 35: File System Hierarchy

/sbin

Contains binary (executable) files, usually for system administration.

This directory contains all the binaries that are essential to theworking of the system.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 16 / 20

Page 36: File System Hierarchy

/sbin

Contains binary (executable) files, usually for system administration.

This directory contains all the binaries that are essential to theworking of the system.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 16 / 20

Page 37: File System Hierarchy

/tmp

This directory contains mostly files that are required temporarily.

This directory is cleared out at boot or at shutdown.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 17 / 20

Page 38: File System Hierarchy

/tmp

This directory contains mostly files that are required temporarily.

This directory is cleared out at boot or at shutdown.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 17 / 20

Page 39: File System Hierarchy

/usr

Unix System Resources

Lot of subdirectories

Shared data, library, binary, application will be located.

Secondary hierarchy for read-only user data; contains the majority of(multi-)user utilities and applications.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 18 / 20

Page 40: File System Hierarchy

/usr

Unix System Resources

Lot of subdirectories

Shared data, library, binary, application will be located.

Secondary hierarchy for read-only user data; contains the majority of(multi-)user utilities and applications.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 18 / 20

Page 41: File System Hierarchy

/usr

Unix System Resources

Lot of subdirectories

Shared data, library, binary, application will be located.

Secondary hierarchy for read-only user data; contains the majority of(multi-)user utilities and applications.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 18 / 20

Page 42: File System Hierarchy

/usr

Unix System Resources

Lot of subdirectories

Shared data, library, binary, application will be located.

Secondary hierarchy for read-only user data; contains the majority of(multi-)user utilities and applications.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 18 / 20

Page 43: File System Hierarchy

/var

Variable files whose content is expected to continually change duringnormal operation of the systemsuch as logs, spool files, andtemporary e-mail files. Sometimes a separate partition.

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 19 / 20

Page 44: File System Hierarchy

Thank You!!!

Srikant Ritolia (LUG Manipal) File System Hierarchy October 17, 2010 20 / 20


Recommended