Os Unit 5 Part 1
Os Unit 5 Part 1
UNIT- 5
Topics
5.1 Introduction to file management
5.2 File naming
5.3 File operation
5.4 File extension
5.5 File system layout
5.6 File allocation: Contiguous, Index
5.7 Free space management
Introduction to File Management in
an Operating System
• File management is a fundamental aspect of any
operating system (OS).
• It refers to the processes and techniques used to
create, organize, access, modify, and delete files and
folders stored on a computer's storage devices.
• Here's a basic overview of this crucial component:
What are files?
• Files are digital containers that hold information,
such as documents, images, videos, music,
applications, and more.
• Each file has a unique name and is associated with a
specific type, like .txt for plain text or .exe for
executable programs.
What are folders?
• For file F1, let's say the beginning address is 1 and the number of
memory blocks needed is 3. After then, it will be kept at b[1],
b[2], and b[3].
• Every file will contain a directory entry with the information listed
below:
• Simple to implement
• Sequential Access: Reading and writing to a file are generally faster when
the data blocks are stored contiguously. Sequential access is efficient.
The index block serves as a table of contents for the file, pointing to
the locations of its data blocks on the storage medium.
Product A Product B
• Feature 1 • Feature 1
• Feature 2 • Feature 2
• Feature 3 • Feature 3