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

PPTX
File Management
PPTX
Gender and social inclusion
PPTX
Process management os concept
PPT
File management ppt
PPTX
Operating Systems - File Management
PPTX
File management
PPT
Human Rights Presentation
PPTX
Memory Management in OS
File Management
Gender and social inclusion
Process management os concept
File management ppt
Operating Systems - File Management
File management
Human Rights Presentation
Memory Management in OS

What's hot (20)

PDF
operating system structure
PDF
Memory management
PPTX
Memory Hierarchy
PPTX
Operating system paging and segmentation
PPTX
Deadlock ppt
PDF
Disk allocation methods
PPTX
File system Os
PPT
File Management in Operating Systems
PPTX
File system structure
PPT
Memory Management in OS
PPTX
Process in operating system
PPTX
Page replacement algorithms
PPTX
DeadLock in Operating-Systems
PPS
Virtual memory
PPTX
Introduction to Parallel and Distributed Computing
PPTX
Segmentation in operating systems
PPTX
Operating system components
PPTX
Threads (operating System)
PPTX
Demand paging
PPTX
Congestion control
operating system structure
Memory management
Memory Hierarchy
Operating system paging and segmentation
Deadlock ppt
Disk allocation methods
File system Os
File Management in Operating Systems
File system structure
Memory Management in OS
Process in operating system
Page replacement algorithms
DeadLock in Operating-Systems
Virtual memory
Introduction to Parallel and Distributed Computing
Segmentation in operating systems
Operating system components
Threads (operating System)
Demand paging
Congestion control
Ad

Similar to File Management in Operating System (20)

PPT
network and system admistration by Chapter 4.ppt
PPTX
Chapter 12.pptx
PDF
File Systems
PPT
Unit 3 file management
PPTX
8 File Management system project .pptx
PPTX
File management
PPT
Unit 3 chapter 1-file management
PDF
File structure
PPT
Operating System - File Management concepts
PPT
Operating Systems - File Space Allocation
PPTX
(file systems)12312321321321312312312.pptx
PPTX
Model of file system
PPTX
operating system notes for file managment.pptx
PPTX
CHAPTER 1 - Operating systems File System Interface.pptx
PPTX
Unit 6 OSY.pptx aaaaaaaaaaaaaaaaaaaaaaaa
PPTX
OS Unit 4.pptx
PDF
Chapter12
PPTX
File System operating system operating system
PDF
Unit ivos - file systems
PPSX
Unit 4 file and data management
network and system admistration by Chapter 4.ppt
Chapter 12.pptx
File Systems
Unit 3 file management
8 File Management system project .pptx
File management
Unit 3 chapter 1-file management
File structure
Operating System - File Management concepts
Operating Systems - File Space Allocation
(file systems)12312321321321312312312.pptx
Model of file system
operating system notes for file managment.pptx
CHAPTER 1 - Operating systems File System Interface.pptx
Unit 6 OSY.pptx aaaaaaaaaaaaaaaaaaaaaaaa
OS Unit 4.pptx
Chapter12
File System operating system operating system
Unit ivos - file systems
Unit 4 file and data management
Ad

More from Janki Shah (9)

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

Recently uploaded (20)

PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
DOCX
573137875-Attendance-Management-System-original
PDF
Structs to JSON How Go Powers REST APIs.pdf
PDF
PPT on Performance Review to get promotions
PPTX
Geodesy 1.pptx...............................................
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
Lecture Notes Electrical Wiring System Components
PDF
Arduino robotics embedded978-1-4302-3184-4.pdf
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPT
Mechanical Engineering MATERIALS Selection
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPT
Project quality management in manufacturing
PPTX
Welding lecture in detail for understanding
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
Embodied AI: Ushering in the Next Era of Intelligent Systems
573137875-Attendance-Management-System-original
Structs to JSON How Go Powers REST APIs.pdf
PPT on Performance Review to get promotions
Geodesy 1.pptx...............................................
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Lecture Notes Electrical Wiring System Components
Arduino robotics embedded978-1-4302-3184-4.pdf
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Mechanical Engineering MATERIALS Selection
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
CYBER-CRIMES AND SECURITY A guide to understanding
Project quality management in manufacturing
Welding lecture in detail for understanding
bas. eng. economics group 4 presentation 1.pptx
Model Code of Practice - Construction Work - 21102022 .pdf

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