SlideShare a Scribd company logo
2
Most read
5
Most read
6
Most read
Directory Structure
Prepared By: Mr. Sangram. A. Patil
Assistant Professor,PVPIT Budhgaon
Directory Structure
 How to store files?
 There are typically thousands, millions, or billions of files within computer storage.
 Files are stored on random access storage devices.
 Storage devices store file system by partitioning disks, each partition is called as
slices or minidisks.
 Entity containing file system usually known as volume.
 Volume may be subset of device, whole device or multiple devices linked together
 Each volume contains a file system must also contain information about files in
system. This information is in device directory or volume table of contents.
 Directory entry contains information about name, location, size, and type for all
files on that volume.
Directory structure
Directory structure
Directory overview
 Directory can be defined as the listing of the related files on the disk. The directory
may store some or the entire file attributes.
 Several operations are performed on directory.
1. Create a file: New files to be created and added to the directory.
2. Search for a file: we can able to search a directory structure to find the entry for
particular file.
3. Delete a file: when file is not needed we will able to remove it from directory.
4. List a directory: list the files in the directory and contents of the directory entry for
each file in the list.
5. Rename a file: changing the name of file according to contents of file.
6. Traverse the file system: Access every directory and every file within directory
structure.
Single level directory
 The simplest method is to have one big list of all the files on the disk.
 The entire system will contain only one directory which is supposed to mention
all the files present in the file system.
 The directory contains one entry per each file present on the file system
 MSDOS, UNIX
 This type of directories can be used for a simple system.
Single level directory
 Advantages
1. Implementation is very simple.
2. If the sizes of the files are very small then the searching becomes faster.
3. File creation, searching, deletion is very simple since we have only one directory.
 Disadvantages
1. We cannot have two files with the same name.
2. The directory may be very big therefore searching for a file may take so much time.
3. Protection cannot be implemented for multiple users.
4. There are no ways to group same kind of files.
5. Choosing the unique name for every file is a bit complex and limits the number of
files in the system because most of the Operating System limits the number of
characters used to construct the file name.
Two level directory
 In two level directory systems, we can create a separate directory for each user.
 There is one master directory which contains separate directories dedicated to each
user.
 For each user, there is a different directory present at the second level, containing
group of user's file.
 The system doesn't let a user to enter in the other user's directory without
permission.
Two level directory (Cont.)
Two level directory (Cont.)
 Characteristics of two level directory system
1. Each files has a path name as /User-name/directory-name/file name
2. Different users can have the same file name.
3. Searching becomes more efficient as only one user's list needs to be traversed.
4. The same kind of files cannot be grouped into a single directory for a particular
user.
5. Every Operating System maintains a variable as PWD which contains the present
directory name (present user name) so that the searching can be done
appropriately.
Tree Structured Directory
 Any directory entry can either be a file or sub directory.
 Tree structured directory system overcomes the drawbacks of two level directory
system. The similar kind of files can now be grouped in one directory.
 Each user has its own directory and it cannot enter in the other user's directory.
However, the user has the permission to read the root's data but he cannot write or
modify this. Only administrator of the system has the complete access of root
directory.
 Searching is more efficient in this directory structure. The concept of current
working directory is used.
 A file can be accessed by two types of path, either relative or absolute.
Tree Structured Directory
 Absolute path is the path of the file with respect to the root directory of the
system
 Relative path is the path with respect to the current working directory of the
system.
Acyclic Graph structured directories
 The tree structured directory system doesn't allow the same file to exist in multiple
directories therefore sharing is major concern in tree structured directory system.
 Sharing can be provided by making the directory an acyclic graph. In this system, two or
more directory entry can point to the same file or sub directory. That file or sub
directory is shared between the two directory entries.
 These kinds of directory graphs can be made using links or aliases. We can have
multiple paths for a same file. Links can either be symbolic (logical) or hard link
(physical).
 If a file gets deleted in acyclic graph structured directory system, then
1. In the case of soft link, the file just gets deleted and we are left with a dangling pointer.
2. In the case of hard link, the actual file will be deleted only if all the references to it gets
deleted.
Acyclic Graph structured directories

More Related Content

PPTX
directory structure and file system mounting
PPTX
Directory implementation and allocation methods
PPTX
File system structure
PPTX
(floyd's algm)
PPTX
Pin diagram 8085
PPTX
Presentation on Rectifier
PPTX
PPT.pptx
PPTX
Virtualization
directory structure and file system mounting
Directory implementation and allocation methods
File system structure
(floyd's algm)
Pin diagram 8085
Presentation on Rectifier
PPT.pptx
Virtualization

What's hot (20)

PPT
Contiguous Memory Allocation.ppt
PPTX
Semophores and it's types
PPTX
Page replacement algorithms
PPTX
Segmentation in operating systems
PPT
Thrashing allocation frames.43
PPTX
Page replacement algorithms
PDF
Memory management
PPTX
Structure of the page table
PPT
13. Query Processing in DBMS
PPTX
File allocation methods (1)
PPTX
Backtracking-N Queens Problem-Graph Coloring-Hamiltonian cycle
PPTX
DBMS - RAID
PPT
FILE STRUCTURE IN DBMS
PPTX
Operating system paging and segmentation
PPTX
Fragmentaton
PPTX
RAID LEVELS
PPTX
Paging and segmentation
PPTX
Lock based protocols
PPTX
Memory management ppt
Contiguous Memory Allocation.ppt
Semophores and it's types
Page replacement algorithms
Segmentation in operating systems
Thrashing allocation frames.43
Page replacement algorithms
Memory management
Structure of the page table
13. Query Processing in DBMS
File allocation methods (1)
Backtracking-N Queens Problem-Graph Coloring-Hamiltonian cycle
DBMS - RAID
FILE STRUCTURE IN DBMS
Operating system paging and segmentation
Fragmentaton
RAID LEVELS
Paging and segmentation
Lock based protocols
Memory management ppt
Ad

Similar to Directory structure (20)

PDF
File structure
PPTX
FUNDAMENTALS PPT OF ENGINEERING IN AI AND ML
PPTX
FUNDAMENTALS OF ENGINEERING WITH MACHINE LEARNING AND ARTIFICIAL INTELLIGENCE
PDF
FILE SYSTEM STRUCTURE PRESENTATION OPERATING SYSTEM
PPT
network and system admistration by Chapter 4.ppt
PDF
File Systems
PDF
Unit ivos - file systems
PPT
Unit 3 file management
PPTX
Operating System Unit 4(RTU Syllabus).pptx
PPTX
CHAPTER 1 - Operating systems File System Interface.pptx
PPT
os unit-5-part2.ppt,Disk management file
PPTX
Filesth file handling in language dile
PPT
PPTX
File Directory Structure-R.D.Sivakumar
PDF
File system in operating system e learning
PPTX
PPTX
File System operating system operating system
PPTX
operating system notes for file managment.pptx
PPT
file management_osnotes.ppt
PPTX
Chapter 12.pptx
File structure
FUNDAMENTALS PPT OF ENGINEERING IN AI AND ML
FUNDAMENTALS OF ENGINEERING WITH MACHINE LEARNING AND ARTIFICIAL INTELLIGENCE
FILE SYSTEM STRUCTURE PRESENTATION OPERATING SYSTEM
network and system admistration by Chapter 4.ppt
File Systems
Unit ivos - file systems
Unit 3 file management
Operating System Unit 4(RTU Syllabus).pptx
CHAPTER 1 - Operating systems File System Interface.pptx
os unit-5-part2.ppt,Disk management file
Filesth file handling in language dile
File Directory Structure-R.D.Sivakumar
File system in operating system e learning
File System operating system operating system
operating system notes for file managment.pptx
file management_osnotes.ppt
Chapter 12.pptx
Ad

More from sangrampatil81 (20)

PPTX
Deadlock
PPTX
Memory Management
PPTX
virtual memory
PPTX
IO hardware
PPTX
File management
PPTX
Disk structure
PPTX
Methods for handling deadlock
PPTX
Semaphore
PPTX
Monitors
PPTX
Classical problems of process synchronization
PPTX
System programs
PPTX
System programs
PPTX
Services and system calls
PPTX
Operating system structure
PPTX
Operating system deign and implementation
PPTX
Pointer to array and structure
PPTX
Pointer arithmetic in c
PPTX
Pointer in c
PPTX
Structure in c language
PPTX
Pointer in c
Deadlock
Memory Management
virtual memory
IO hardware
File management
Disk structure
Methods for handling deadlock
Semaphore
Monitors
Classical problems of process synchronization
System programs
System programs
Services and system calls
Operating system structure
Operating system deign and implementation
Pointer to array and structure
Pointer arithmetic in c
Pointer in c
Structure in c language
Pointer in c

Recently uploaded (20)

PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
System and Network Administraation Chapter 3
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PPTX
ISO 45001 Occupational Health and Safety Management System
PPTX
ManageIQ - Sprint 268 Review - Slide Deck
PPTX
Online Work Permit System for Fast Permit Processing
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PDF
medical staffing services at VALiNTRY
PPTX
ai tools demonstartion for schools and inter college
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PPTX
history of c programming in notes for students .pptx
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
PPTX
Introduction to Artificial Intelligence
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
How to Choose the Right IT Partner for Your Business in Malaysia
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Navsoft: AI-Powered Business Solutions & Custom Software Development
How Creative Agencies Leverage Project Management Software.pdf
System and Network Administraation Chapter 3
VVF-Customer-Presentation2025-Ver1.9.pptx
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
ISO 45001 Occupational Health and Safety Management System
ManageIQ - Sprint 268 Review - Slide Deck
Online Work Permit System for Fast Permit Processing
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
medical staffing services at VALiNTRY
ai tools demonstartion for schools and inter college
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
history of c programming in notes for students .pptx
PTS Company Brochure 2025 (1).pdf.......
Addressing The Cult of Project Management Tools-Why Disconnected Work is Hold...
Introduction to Artificial Intelligence
Odoo POS Development Services by CandidRoot Solutions
Upgrade and Innovation Strategies for SAP ERP Customers
How to Choose the Right IT Partner for Your Business in Malaysia

Directory structure

  • 1. Directory Structure Prepared By: Mr. Sangram. A. Patil Assistant Professor,PVPIT Budhgaon
  • 2. Directory Structure  How to store files?  There are typically thousands, millions, or billions of files within computer storage.  Files are stored on random access storage devices.  Storage devices store file system by partitioning disks, each partition is called as slices or minidisks.  Entity containing file system usually known as volume.  Volume may be subset of device, whole device or multiple devices linked together  Each volume contains a file system must also contain information about files in system. This information is in device directory or volume table of contents.  Directory entry contains information about name, location, size, and type for all files on that volume.
  • 5. Directory overview  Directory can be defined as the listing of the related files on the disk. The directory may store some or the entire file attributes.  Several operations are performed on directory. 1. Create a file: New files to be created and added to the directory. 2. Search for a file: we can able to search a directory structure to find the entry for particular file. 3. Delete a file: when file is not needed we will able to remove it from directory. 4. List a directory: list the files in the directory and contents of the directory entry for each file in the list. 5. Rename a file: changing the name of file according to contents of file. 6. Traverse the file system: Access every directory and every file within directory structure.
  • 6. Single level directory  The simplest method is to have one big list of all the files on the disk.  The entire system will contain only one directory which is supposed to mention all the files present in the file system.  The directory contains one entry per each file present on the file system  MSDOS, UNIX  This type of directories can be used for a simple system.
  • 7. Single level directory  Advantages 1. Implementation is very simple. 2. If the sizes of the files are very small then the searching becomes faster. 3. File creation, searching, deletion is very simple since we have only one directory.  Disadvantages 1. We cannot have two files with the same name. 2. The directory may be very big therefore searching for a file may take so much time. 3. Protection cannot be implemented for multiple users. 4. There are no ways to group same kind of files. 5. Choosing the unique name for every file is a bit complex and limits the number of files in the system because most of the Operating System limits the number of characters used to construct the file name.
  • 8. Two level directory  In two level directory systems, we can create a separate directory for each user.  There is one master directory which contains separate directories dedicated to each user.  For each user, there is a different directory present at the second level, containing group of user's file.  The system doesn't let a user to enter in the other user's directory without permission.
  • 10. Two level directory (Cont.)  Characteristics of two level directory system 1. Each files has a path name as /User-name/directory-name/file name 2. Different users can have the same file name. 3. Searching becomes more efficient as only one user's list needs to be traversed. 4. The same kind of files cannot be grouped into a single directory for a particular user. 5. Every Operating System maintains a variable as PWD which contains the present directory name (present user name) so that the searching can be done appropriately.
  • 11. Tree Structured Directory  Any directory entry can either be a file or sub directory.  Tree structured directory system overcomes the drawbacks of two level directory system. The similar kind of files can now be grouped in one directory.  Each user has its own directory and it cannot enter in the other user's directory. However, the user has the permission to read the root's data but he cannot write or modify this. Only administrator of the system has the complete access of root directory.  Searching is more efficient in this directory structure. The concept of current working directory is used.  A file can be accessed by two types of path, either relative or absolute.
  • 12. Tree Structured Directory  Absolute path is the path of the file with respect to the root directory of the system  Relative path is the path with respect to the current working directory of the system.
  • 13. Acyclic Graph structured directories  The tree structured directory system doesn't allow the same file to exist in multiple directories therefore sharing is major concern in tree structured directory system.  Sharing can be provided by making the directory an acyclic graph. In this system, two or more directory entry can point to the same file or sub directory. That file or sub directory is shared between the two directory entries.  These kinds of directory graphs can be made using links or aliases. We can have multiple paths for a same file. Links can either be symbolic (logical) or hard link (physical).  If a file gets deleted in acyclic graph structured directory system, then 1. In the case of soft link, the file just gets deleted and we are left with a dangling pointer. 2. In the case of hard link, the actual file will be deleted only if all the references to it gets deleted.