SlideShare a Scribd company logo
FILES AND
DIRECTORY
STRUCTURE
WHAT IS A FILE?
A file is a collection of records.
Data or applications can be stored in files. There are
two types of files: simple and complex. Both the
operating system and the software that creates the
file decide the structure of the file. Files are kept in
a file system, which can be found on a disc, tape, or
main memory.
File entries or attributes include file name, file type,
location, size, protection/permission, timestamp,
ownership, and directory information.
1.Organization: A file system allows files to be organized into directories
and subdirectories, making it easier to manage and locate files.
2.Data protection: File systems often include features such as file and
folder permissions, backup and restore, and error detection and
correction, to protect data from loss or corruption.
3.Improved performance: A well-designed file system can improve the
performance of reading and writing data by organizing it efficiently on
disk.
The advantages of using a file system
WHAT IS A DIRECTORY?
A directory is a container that is
used to contain folders and files.
It organizes files and folders in a
hierarchical manner.
Types of directory structures
• Single-Level Directory Structure.
• Two-Level Directory Structure.
• Tree-Structured Directory.
• Acyclic-Graph Directory Structure.
• General-Graph Directory Structure
1) Single-level
directory:
• The single-level directory is the simplest
directory structure. In it, all files are
contained in the same directory which makes
it easy to support and understand.
• Since all the files are in the same directory,
they must have a unique name. If two users
call their dataset test, then the unique name
rule violated.
2) Two-level directory
In the two-level directory structure, each
user has their own user files directory
(UFD). The UFDs have similar structures,
but each lists only the files of a single
use.
The main advantage is there can be
more than two files with same name,
and would be very helpful if there are
multiple users.
3) Tree Structure/ Hierarchical Structure
• Tree directory structure of operating system is
most commonly used in our personal
computers. User can create files and
subdirectories too.
• This directory structure resembles a real
tree upside down, where the root
directory is at the peak. This root contains
all the directories for each user. The users
can create subdirectories and even store
files in their directory.
4) Acyclic Graph Structure
In acyclic graph directory structure,
where a file in one directory can be
accessed from multiple directories. In this
way, the files could be shared in between
the users. It is designed in a way that
multiple directories point to a particular
directory or file with the help of links.
5) General-Graph Directory
Structure
When general graph directories are allowed, commands
like, search a directory and its subdirectories, must be used
with caution. If cycles are allowed, the search is infinite.
The biggest issue with this type of directory layout is
figuring out how much space the files and folders have
used up.
FUNDAMENTALS PPT OF ENGINEERING IN AI AND ML

More Related Content

PPTX
FUNDAMENTALS OF ENGINEERING WITH MACHINE LEARNING AND ARTIFICIAL INTELLIGENCE
PPTX
File and directory
PDF
File system in operating system e learning
PPTX
File Directory Structure-R.D.Sivakumar
PPTX
Directory structure
PPTX
File System.pptx
PDF
oslectureset7.pdf
PPTX
FUNDAMENTALS OF ENGINEERING WITH MACHINE LEARNING AND ARTIFICIAL INTELLIGENCE
File and directory
File system in operating system e learning
File Directory Structure-R.D.Sivakumar
Directory structure
File System.pptx
oslectureset7.pdf

Similar to FUNDAMENTALS PPT OF ENGINEERING IN AI AND ML (20)

PPTX
fileanddirectory-PID.pptx
PPT
network and system admistration by Chapter 4.ppt
PPTX
directory structure and file system mounting
DOCX
File system interfacefinal
PDF
File structure
PPT
Ch11 OS
 
PPT
PDF
FILE SYSTEM STRUCTURE PRESENTATION OPERATING SYSTEM
PPT
os unit-5-part2.ppt,Disk management file
PPTX
File System Interface
PPTX
CHAPTER 1 - Operating systems File System Interface.pptx
PPT
operating system File - System Interface
PPT
PPTX
File system interface
PPTX
File Management in Operating System
PPT
Unit 3 file management
PPTX
File directory definition 54(2)
PPTX
File System operating system operating system
PPT
Operating System
fileanddirectory-PID.pptx
network and system admistration by Chapter 4.ppt
directory structure and file system mounting
File system interfacefinal
File structure
Ch11 OS
 
FILE SYSTEM STRUCTURE PRESENTATION OPERATING SYSTEM
os unit-5-part2.ppt,Disk management file
File System Interface
CHAPTER 1 - Operating systems File System Interface.pptx
operating system File - System Interface
File system interface
File Management in Operating System
Unit 3 file management
File directory definition 54(2)
File System operating system operating system
Operating System
Ad

Recently uploaded (20)

PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPT
Project quality management in manufacturing
PPTX
Sustainable Sites - Green Building Construction
PPTX
Welding lecture in detail for understanding
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PDF
PPT on Performance Review to get promotions
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
Construction Project Organization Group 2.pptx
PDF
composite construction of structures.pdf
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
Lecture Notes Electrical Wiring System Components
PDF
Digital Logic Computer Design lecture notes
PDF
Structs to JSON How Go Powers REST APIs.pdf
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Strings in CPP - Strings in C++ are sequences of characters used to store and...
UNIT-1 - COAL BASED THERMAL POWER PLANTS
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Project quality management in manufacturing
Sustainable Sites - Green Building Construction
Welding lecture in detail for understanding
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPT on Performance Review to get promotions
bas. eng. economics group 4 presentation 1.pptx
Operating System & Kernel Study Guide-1 - converted.pdf
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Construction Project Organization Group 2.pptx
composite construction of structures.pdf
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Embodied AI: Ushering in the Next Era of Intelligent Systems
Lecture Notes Electrical Wiring System Components
Digital Logic Computer Design lecture notes
Structs to JSON How Go Powers REST APIs.pdf
Ad

FUNDAMENTALS PPT OF ENGINEERING IN AI AND ML

  • 2. WHAT IS A FILE? A file is a collection of records. Data or applications can be stored in files. There are two types of files: simple and complex. Both the operating system and the software that creates the file decide the structure of the file. Files are kept in a file system, which can be found on a disc, tape, or main memory. File entries or attributes include file name, file type, location, size, protection/permission, timestamp, ownership, and directory information.
  • 3. 1.Organization: A file system allows files to be organized into directories and subdirectories, making it easier to manage and locate files. 2.Data protection: File systems often include features such as file and folder permissions, backup and restore, and error detection and correction, to protect data from loss or corruption. 3.Improved performance: A well-designed file system can improve the performance of reading and writing data by organizing it efficiently on disk. The advantages of using a file system
  • 4. WHAT IS A DIRECTORY? A directory is a container that is used to contain folders and files. It organizes files and folders in a hierarchical manner.
  • 5. Types of directory structures • Single-Level Directory Structure. • Two-Level Directory Structure. • Tree-Structured Directory. • Acyclic-Graph Directory Structure. • General-Graph Directory Structure
  • 6. 1) Single-level directory: • The single-level directory is the simplest directory structure. In it, all files are contained in the same directory which makes it easy to support and understand. • Since all the files are in the same directory, they must have a unique name. If two users call their dataset test, then the unique name rule violated.
  • 7. 2) Two-level directory In the two-level directory structure, each user has their own user files directory (UFD). The UFDs have similar structures, but each lists only the files of a single use. The main advantage is there can be more than two files with same name, and would be very helpful if there are multiple users.
  • 8. 3) Tree Structure/ Hierarchical Structure • Tree directory structure of operating system is most commonly used in our personal computers. User can create files and subdirectories too. • This directory structure resembles a real tree upside down, where the root directory is at the peak. This root contains all the directories for each user. The users can create subdirectories and even store files in their directory.
  • 9. 4) Acyclic Graph Structure In acyclic graph directory structure, where a file in one directory can be accessed from multiple directories. In this way, the files could be shared in between the users. It is designed in a way that multiple directories point to a particular directory or file with the help of links.
  • 10. 5) General-Graph Directory Structure When general graph directories are allowed, commands like, search a directory and its subdirectories, must be used with caution. If cycles are allowed, the search is infinite. The biggest issue with this type of directory layout is figuring out how much space the files and folders have used up.