SlideShare a Scribd company logo
2
Most read
3
Most read
4
Most read
FILE MANAGEMENT in OS
Contents
 File Concepts
 File Types
 File Operations
 Access Methods
 Directory Structure
 File System Structure
File Concept
 The file is a collection of related
information that is recorded on storage
device.
 The files stores information and data.
 It is a way of data collection which is
used as medium of giving input
and collecting output from
any application.
File Types
1. Ordinary Files ( Regular Files )
– It contains user information
– It contains text or executable programs
– It is either text file or binary file
– User can apply various operations
2. Directory Files
– It is like a folder that contains files or
other folder
– It don’t contain data
– But they have references to file contain
within them
File Types
3. Device File
– It contains device information
– It is used to communicate with
hardware
– Device file is of two types
i. Character special file
It is a hardware file which read or write
data character by character
e.g.: mouse, printer
ii. Block file
It contains data related to hard disk
File Types
4. FIFO Files
– It is a file which provides temporary
buffer for two or more process to
communicates by writing data &
reading data from buffer
– The buffer associated with this file is
allocated when any process opens the
file & buffer is discarded when all
processes which are connected to this
file close their reference
File Operations
1. Create
2. Delete
3. Open
4. Close
5. Read
6. Write
7. Append
8. Seek
9. Get Attributes
10. Set Attributes
11. Rename
Directory Structure
• To keep track of files, file systems normally
have directories of folders.
• Directories are system files for maintaining
the structure of the file system.
1. Single Level Directory Structure
2. Hierarchical Directory
i. Two Level Directory Structure
ii. Tree Level Directory Structure
iii. Acyclic Graph Directory
Single Level Directory
Directory
File 1 File 2 File 3
Figure : Single Level Directory
Hierarchical Directory
User1 User2 User3 User4
A1 B1 c1
F1 F2F10
Figure : Two Level Directory
Hierarchical Directory
Root
Figure : Tree Level Directory
Sort.c
a.txt
b.txt
reverse.cp
p
Hierarchical Directory
Figure : Acyclic Directory
b.txt
b.txt b.txt
File System Structure
 The concept of file system is to access
the disk efficiently. It allows data to
store & retrieve from disk.
 File system structure is composed of
many layers as following:
1. Input-Output Control Interface
 It consist of device driver and interrupt
handler.
 Both are used for data transfer between
memory & disk
 The device driver translates file level
command & output is hardware instruction
2. Basic File System Layers
 It generates commands for device driver
 Device driver read or write physical block on
disk
3. File Organization Module Layer
 This layer translates logical block address to
physical block address
4. Logical System Layer
 It manages metadata of any file like location &
permission of file
5. Application Program Layer
 This is a layer in which user creates an
application program
Access Methods
 The information stored in the file
needs to be accessed and read into
the computer memory.
 There are different methods available
to do it.
1) Sequential Access
2) Indexed Access
3) Direct Access
Sequential Access
 Most common form of file
structure
 A fixed format is used for
records
 Key field uniquely identifies the
record & determines storage
order
 Typically used in batch
applications
 Only organization that is easily
stored on tape as well as disk
Indexed Access
 Records are accessed only
through their indexes
 Variable-length records can be
employed
 Exhaustive index contains one
entry for every record in the
main file
 Partial index contains entries
to records where the field of
interest exists
 Used mostly in applications
where timeliness of
information is critical
 Examples would be airline
reservation systems and
inventory control systems
Direct Access
 Access directly any block of a known address
 Makes use of hashing on the key value
 Often used where:
◦ very rapid access is required
◦ fixed-length records are used
◦ records are always accessed one at a time
References
 Operating System By Andrew
Tanenbaums
THANK YOU

More Related Content

PPT
File Management in Operating Systems
vampugani
 
PPTX
File system structure
sangrampatil81
 
PPTX
File system Os
Nehal Naik
 
PPT
File system
Harleen Johal
 
PPTX
directory structure and file system mounting
rajshreemuthiah
 
PPTX
file system in operating system
tittuajay
 
PDF
File system in operating system e learning
Lavanya Sharma
 
PPTX
File management
Vishal Singh
 
File Management in Operating Systems
vampugani
 
File system structure
sangrampatil81
 
File system Os
Nehal Naik
 
File system
Harleen Johal
 
directory structure and file system mounting
rajshreemuthiah
 
file system in operating system
tittuajay
 
File system in operating system e learning
Lavanya Sharma
 
File management
Vishal Singh
 

What's hot (20)

PPT
System call
Sumant Diwakar
 
PPTX
Process management os concept
priyadeosarkar91
 
PPT
Memory Management in OS
vampugani
 
PPTX
System calls
Bernard Senam
 
PDF
Memory management
Rajni Sirohi
 
PPT
CPU Scheduling Algorithms
Shubhashish Punj
 
PPTX
Demand paging
Trinity Dwarka
 
PPTX
File allocation methods (1)
Dr. Jasmine Beulah Gnanadurai
 
PPTX
Operating system paging and segmentation
hamza haseeb
 
PPT
Operating system services 9
myrajendra
 
PDF
Address Binding Scheme
Rajesh Piryani
 
PPTX
contiguous memory allocation.pptx
Rajapriya82
 
PPTX
Cpu scheduling in operating System.
Ravi Kumar Patel
 
PPTX
Process in operating system
Chetan Mahawar
 
PPTX
Process state in OS
Khushboo Jain
 
PPTX
Generation of os
Shubham Sinha
 
PPTX
Inter Process Communication
Adeel Rasheed
 
PDF
CS9222 Advanced Operating System
Kathirvel Ayyaswamy
 
PPTX
File access method
GayathriS578276
 
PDF
Operating System.pdf
Syed Zaid Irshad
 
System call
Sumant Diwakar
 
Process management os concept
priyadeosarkar91
 
Memory Management in OS
vampugani
 
System calls
Bernard Senam
 
Memory management
Rajni Sirohi
 
CPU Scheduling Algorithms
Shubhashish Punj
 
Demand paging
Trinity Dwarka
 
File allocation methods (1)
Dr. Jasmine Beulah Gnanadurai
 
Operating system paging and segmentation
hamza haseeb
 
Operating system services 9
myrajendra
 
Address Binding Scheme
Rajesh Piryani
 
contiguous memory allocation.pptx
Rajapriya82
 
Cpu scheduling in operating System.
Ravi Kumar Patel
 
Process in operating system
Chetan Mahawar
 
Process state in OS
Khushboo Jain
 
Generation of os
Shubham Sinha
 
Inter Process Communication
Adeel Rasheed
 
CS9222 Advanced Operating System
Kathirvel Ayyaswamy
 
File access method
GayathriS578276
 
Operating System.pdf
Syed Zaid Irshad
 
Ad

Similar to File Management in Operating System (20)

PPTX
CHAPTER 1 - Operating systems File System Interface.pptx
AnithaSakthivel3
 
PPT
Unit 3 chapter 1-file management
Kalai Selvi
 
PPTX
File System Interface
chandinisanz
 
PDF
oslectureset7.pdf
WaltonJrSmithTZ
 
PPTX
(file systems)12312321321321312312312.pptx
ronniemayang
 
PPTX
Unit 6 OSY.pptx aaaaaaaaaaaaaaaaaaaaaaaa
harshlad847
 
PDF
File Systems
Shipra Swati
 
PPTX
File System.pptx
bcanawakadalcollege
 
PPTX
File management
sangrampatil81
 
PPTX
File Management & Access Control
YuvrajWadavale
 
PPTX
File System operating system operating system
Ethiopia Satlliet television
 
PPTX
8 File Management system project .pptx
anitabricks49
 
PPT
Unit 3 file management
Kalai Selvi
 
PPT
network and system admistration by Chapter 4.ppt
gadisaadamu101
 
PPTX
operating system notes for file managment.pptx
panditestmail
 
PPT
file management_osnotes.ppt
HelalMirzad
 
PPTX
FILE MANAGEMENT.pptx
jayashri kolekar
 
PPT
distributed SYSTEMS FSnewBBIT305KCAU.ppt
mrluvaha
 
PPTX
Chapter 12.pptx
AsmaaFaried1
 
PPTX
The Operating System concepts.. -os.pptx
Stella526835
 
CHAPTER 1 - Operating systems File System Interface.pptx
AnithaSakthivel3
 
Unit 3 chapter 1-file management
Kalai Selvi
 
File System Interface
chandinisanz
 
oslectureset7.pdf
WaltonJrSmithTZ
 
(file systems)12312321321321312312312.pptx
ronniemayang
 
Unit 6 OSY.pptx aaaaaaaaaaaaaaaaaaaaaaaa
harshlad847
 
File Systems
Shipra Swati
 
File System.pptx
bcanawakadalcollege
 
File management
sangrampatil81
 
File Management & Access Control
YuvrajWadavale
 
File System operating system operating system
Ethiopia Satlliet television
 
8 File Management system project .pptx
anitabricks49
 
Unit 3 file management
Kalai Selvi
 
network and system admistration by Chapter 4.ppt
gadisaadamu101
 
operating system notes for file managment.pptx
panditestmail
 
file management_osnotes.ppt
HelalMirzad
 
FILE MANAGEMENT.pptx
jayashri kolekar
 
distributed SYSTEMS FSnewBBIT305KCAU.ppt
mrluvaha
 
Chapter 12.pptx
AsmaaFaried1
 
The Operating System concepts.. -os.pptx
Stella526835
 
Ad

More from Janki Shah (9)

PPTX
Collections in .net technology (2160711)
Janki Shah
 
PPTX
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Janki Shah
 
PPT
Addressing in Computer Networks
Janki Shah
 
PPTX
Concurrency Control in Database Management System
Janki Shah
 
PPTX
Queue in Data Structure
Janki Shah
 
PPTX
Number system in Digital Electronics
Janki Shah
 
PPTX
Exception Handling in object oriented programming using C++
Janki Shah
 
PPTX
Compiler in System Programming/Code Optimization techniques in System Program...
Janki Shah
 
PPT
Sorting in Linear Time in Analysis & Design of Algorithm
Janki Shah
 
Collections in .net technology (2160711)
Janki Shah
 
Gauss Elimination & Gauss Jordan Methods in Numerical & Statistical Methods
Janki Shah
 
Addressing in Computer Networks
Janki Shah
 
Concurrency Control in Database Management System
Janki Shah
 
Queue in Data Structure
Janki Shah
 
Number system in Digital Electronics
Janki Shah
 
Exception Handling in object oriented programming using C++
Janki Shah
 
Compiler in System Programming/Code Optimization techniques in System Program...
Janki Shah
 
Sorting in Linear Time in Analysis & Design of Algorithm
Janki Shah
 

Recently uploaded (20)

PPTX
Tunnel Ventilation System in Kanpur Metro
220105053
 
PDF
Chad Ayach - A Versatile Aerospace Professional
Chad Ayach
 
PDF
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
PPT
Understanding the Key Components and Parts of a Drone System.ppt
Siva Reddy
 
PPTX
22PCOAM21 Session 2 Understanding Data Source.pptx
Guru Nanak Technical Institutions
 
PPTX
sunil mishra pptmmmmmmmmmmmmmmmmmmmmmmmmm
singhamit111
 
PDF
AI-Driven IoT-Enabled UAV Inspection Framework for Predictive Maintenance and...
ijcncjournal019
 
PPTX
MSME 4.0 Template idea hackathon pdf to understand
alaudeenaarish
 
PPT
1. SYSTEMS, ROLES, AND DEVELOPMENT METHODOLOGIES.ppt
zilow058
 
PDF
Biodegradable Plastics: Innovations and Market Potential (www.kiu.ac.ug)
publication11
 
PPTX
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
PPTX
quantum computing transition from classical mechanics.pptx
gvlbcy
 
PDF
Natural_Language_processing_Unit_I_notes.pdf
sanguleumeshit
 
PDF
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
PDF
Machine Learning All topics Covers In This Single Slides
AmritTiwari19
 
PDF
2025 Laurence Sigler - Advancing Decision Support. Content Management Ecommer...
Francisco Javier Mora Serrano
 
PDF
Zero carbon Building Design Guidelines V4
BassemOsman1
 
PDF
2010_Book_EnvironmentalBioengineering (1).pdf
EmilianoRodriguezTll
 
PDF
top-5-use-cases-for-splunk-security-analytics.pdf
yaghutialireza
 
PPTX
Inventory management chapter in automation and robotics.
atisht0104
 
Tunnel Ventilation System in Kanpur Metro
220105053
 
Chad Ayach - A Versatile Aerospace Professional
Chad Ayach
 
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
Understanding the Key Components and Parts of a Drone System.ppt
Siva Reddy
 
22PCOAM21 Session 2 Understanding Data Source.pptx
Guru Nanak Technical Institutions
 
sunil mishra pptmmmmmmmmmmmmmmmmmmmmmmmmm
singhamit111
 
AI-Driven IoT-Enabled UAV Inspection Framework for Predictive Maintenance and...
ijcncjournal019
 
MSME 4.0 Template idea hackathon pdf to understand
alaudeenaarish
 
1. SYSTEMS, ROLES, AND DEVELOPMENT METHODOLOGIES.ppt
zilow058
 
Biodegradable Plastics: Innovations and Market Potential (www.kiu.ac.ug)
publication11
 
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
quantum computing transition from classical mechanics.pptx
gvlbcy
 
Natural_Language_processing_Unit_I_notes.pdf
sanguleumeshit
 
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
Machine Learning All topics Covers In This Single Slides
AmritTiwari19
 
2025 Laurence Sigler - Advancing Decision Support. Content Management Ecommer...
Francisco Javier Mora Serrano
 
Zero carbon Building Design Guidelines V4
BassemOsman1
 
2010_Book_EnvironmentalBioengineering (1).pdf
EmilianoRodriguezTll
 
top-5-use-cases-for-splunk-security-analytics.pdf
yaghutialireza
 
Inventory management chapter in automation and robotics.
atisht0104
 

File Management in Operating System

  • 2. Contents  File Concepts  File Types  File Operations  Access Methods  Directory Structure  File System Structure
  • 3. File Concept  The file is a collection of related information that is recorded on storage device.  The files stores information and data.  It is a way of data collection which is used as medium of giving input and collecting output from any application.
  • 4. File Types 1. Ordinary Files ( Regular Files ) – It contains user information – It contains text or executable programs – It is either text file or binary file – User can apply various operations 2. Directory Files – It is like a folder that contains files or other folder – It don’t contain data – But they have references to file contain within them
  • 5. File Types 3. Device File – It contains device information – It is used to communicate with hardware – Device file is of two types i. Character special file It is a hardware file which read or write data character by character e.g.: mouse, printer ii. Block file It contains data related to hard disk
  • 6. File Types 4. FIFO Files – It is a file which provides temporary buffer for two or more process to communicates by writing data & reading data from buffer – The buffer associated with this file is allocated when any process opens the file & buffer is discarded when all processes which are connected to this file close their reference
  • 7. File Operations 1. Create 2. Delete 3. Open 4. Close 5. Read 6. Write 7. Append 8. Seek 9. Get Attributes 10. Set Attributes 11. Rename
  • 8. Directory Structure • To keep track of files, file systems normally have directories of folders. • Directories are system files for maintaining the structure of the file system. 1. Single Level Directory Structure 2. Hierarchical Directory i. Two Level Directory Structure ii. Tree Level Directory Structure iii. Acyclic Graph Directory
  • 9. Single Level Directory Directory File 1 File 2 File 3 Figure : Single Level Directory
  • 10. Hierarchical Directory User1 User2 User3 User4 A1 B1 c1 F1 F2F10 Figure : Two Level Directory
  • 11. Hierarchical Directory Root Figure : Tree Level Directory Sort.c a.txt b.txt reverse.cp p
  • 12. Hierarchical Directory Figure : Acyclic Directory b.txt b.txt b.txt
  • 13. File System Structure  The concept of file system is to access the disk efficiently. It allows data to store & retrieve from disk.  File system structure is composed of many layers as following: 1. Input-Output Control Interface  It consist of device driver and interrupt handler.  Both are used for data transfer between memory & disk  The device driver translates file level command & output is hardware instruction
  • 14. 2. Basic File System Layers  It generates commands for device driver  Device driver read or write physical block on disk 3. File Organization Module Layer  This layer translates logical block address to physical block address 4. Logical System Layer  It manages metadata of any file like location & permission of file 5. Application Program Layer  This is a layer in which user creates an application program
  • 15. Access Methods  The information stored in the file needs to be accessed and read into the computer memory.  There are different methods available to do it. 1) Sequential Access 2) Indexed Access 3) Direct Access
  • 16. Sequential Access  Most common form of file structure  A fixed format is used for records  Key field uniquely identifies the record & determines storage order  Typically used in batch applications  Only organization that is easily stored on tape as well as disk
  • 17. Indexed Access  Records are accessed only through their indexes  Variable-length records can be employed  Exhaustive index contains one entry for every record in the main file  Partial index contains entries to records where the field of interest exists  Used mostly in applications where timeliness of information is critical  Examples would be airline reservation systems and inventory control systems
  • 18. Direct Access  Access directly any block of a known address  Makes use of hashing on the key value  Often used where: ◦ very rapid access is required ◦ fixed-length records are used ◦ records are always accessed one at a time
  • 19. References  Operating System By Andrew Tanenbaums