SlideShare a Scribd company logo
1 of 15
File Concept, File Management, File
Attributes




                       http://raj-os.blogspot.in/   1
Recap


In the last class, you have learnt

•   Single and two level directories

•   Tree-structured directories




                  http://raj-os.blogspot.in/   2
• HOME     PREVIOUS TOPIC NEXT
• PREVIOUS QUESTION PAPERS FOR
  OS
• CPP TUTORIALS




            http://raj-os.blogspot.in/   3
Objectives

On completion of this period, you would be able to:

• Understand how deletion of a directory from a tree
  structured directory is handled

• Advantages and limitations of tree-structured
  directories

• Understand acyclic-graph directory structure


                   http://raj-os.blogspot.in/     4
Deleting a Directory

• Two cases arise

     • The directory to be deleted is empty

     • The directory to be deleted is non empty




                    http://raj-os.blogspot.in/    5
Deleting an Empty Directory

• Delete its entry from its containing directory




                    http://raj-os.blogspot.in/     6
Deleting a Non Empty Directory

Two ways to handle the situation
  1. Do not delete unless the directory is empty
  2. Request confirmation from the user
     whether the non empty directory is to be
     deleted along with the directory’s files and
     subdirectories


                   http://raj-os.blogspot.in/       7
The First Approach is used by MS-DOS

• If a user wants to delete a non empty directory, he must
  first delete all the files in that directory



• If there are any subdirectories, same procedure must be
  recursively applied



• Involves a substantial amount of work

                         http://raj-os.blogspot.in/          8
The Second Approach is used by Unix


• Provide an option to the user whether that
  directory’s files and subdirectories are also to be
  deleted

• More convenient than the first approach, but more
  dangerous if command to delete is issued in error


                    http://raj-os.blogspot.in/      9
Quiz




http://raj-os.blogspot.in/   10
State whether the following are true or false




              http://raj-os.blogspot.in/        11
State True or False

In a tree structured directory a user can not create his
own subdirectories
                                                  False




                     http://raj-os.blogspot.in/            12
State True or False

• Only a non empty directory can be removed

                                                  False




                     http://raj-os.blogspot.in/           13
State True or False

• An acyclic graph is a natural generalization of a tree-
  structured scheme
                                             True




                       http://raj-os.blogspot.in/           14
Other subject materials

•   Web designing
•   Micro processors
•   C++ tutorials
•   java

home


                 http://raj-os.blogspot.in/   15

More Related Content

Viewers also liked

38 paged segmentation
38 paged segmentation38 paged segmentation
38 paged segmentationmyrajendra
 
41 page replacement fifo
41 page replacement fifo41 page replacement fifo
41 page replacement fifomyrajendra
 
File management53(1)
File management53(1)File management53(1)
File management53(1)myrajendra
 
34 single partition allocation
34 single partition allocation34 single partition allocation
34 single partition allocationmyrajendra
 
35. multiplepartitionallocation
35. multiplepartitionallocation35. multiplepartitionallocation
35. multiplepartitionallocationmyrajendra
 
Acyclic grapch directory 56(2)
Acyclic grapch directory 56(2)Acyclic grapch directory 56(2)
Acyclic grapch directory 56(2)myrajendra
 
42 lru optimal
42 lru optimal42 lru optimal
42 lru optimalmyrajendra
 
36 fragmentaio nnd pageconcepts
36 fragmentaio nnd pageconcepts36 fragmentaio nnd pageconcepts
36 fragmentaio nnd pageconceptsmyrajendra
 
Scan scheduling 50 1
Scan scheduling 50 1Scan scheduling 50 1
Scan scheduling 50 1myrajendra
 
C scan scheduling 50 2
C scan scheduling 50 2C scan scheduling 50 2
C scan scheduling 50 2myrajendra
 
C look scheduling 51 1
C look scheduling 51 1C look scheduling 51 1
C look scheduling 51 1myrajendra
 
Single level directory structure.55
Single level directory structure.55Single level directory structure.55
Single level directory structure.55myrajendra
 
Look scheduling.51
Look scheduling.51Look scheduling.51
Look scheduling.51myrajendra
 
File protection.59 to 60
File protection.59 to 60File protection.59 to 60
File protection.59 to 60myrajendra
 
Sstf scheduling.50
Sstf scheduling.50Sstf scheduling.50
Sstf scheduling.50myrajendra
 
40 demand paging
40 demand paging40 demand paging
40 demand pagingmyrajendra
 
Linked allocation 48
Linked  allocation 48Linked  allocation 48
Linked allocation 48myrajendra
 
Thrashing allocation frames.43
Thrashing allocation frames.43Thrashing allocation frames.43
Thrashing allocation frames.43myrajendra
 
39 virtual memory
39 virtual memory39 virtual memory
39 virtual memorymyrajendra
 
Free space managment46
Free space managment46Free space managment46
Free space managment46myrajendra
 

Viewers also liked (20)

38 paged segmentation
38 paged segmentation38 paged segmentation
38 paged segmentation
 
41 page replacement fifo
41 page replacement fifo41 page replacement fifo
41 page replacement fifo
 
File management53(1)
File management53(1)File management53(1)
File management53(1)
 
34 single partition allocation
34 single partition allocation34 single partition allocation
34 single partition allocation
 
35. multiplepartitionallocation
35. multiplepartitionallocation35. multiplepartitionallocation
35. multiplepartitionallocation
 
Acyclic grapch directory 56(2)
Acyclic grapch directory 56(2)Acyclic grapch directory 56(2)
Acyclic grapch directory 56(2)
 
42 lru optimal
42 lru optimal42 lru optimal
42 lru optimal
 
36 fragmentaio nnd pageconcepts
36 fragmentaio nnd pageconcepts36 fragmentaio nnd pageconcepts
36 fragmentaio nnd pageconcepts
 
Scan scheduling 50 1
Scan scheduling 50 1Scan scheduling 50 1
Scan scheduling 50 1
 
C scan scheduling 50 2
C scan scheduling 50 2C scan scheduling 50 2
C scan scheduling 50 2
 
C look scheduling 51 1
C look scheduling 51 1C look scheduling 51 1
C look scheduling 51 1
 
Single level directory structure.55
Single level directory structure.55Single level directory structure.55
Single level directory structure.55
 
Look scheduling.51
Look scheduling.51Look scheduling.51
Look scheduling.51
 
File protection.59 to 60
File protection.59 to 60File protection.59 to 60
File protection.59 to 60
 
Sstf scheduling.50
Sstf scheduling.50Sstf scheduling.50
Sstf scheduling.50
 
40 demand paging
40 demand paging40 demand paging
40 demand paging
 
Linked allocation 48
Linked  allocation 48Linked  allocation 48
Linked allocation 48
 
Thrashing allocation frames.43
Thrashing allocation frames.43Thrashing allocation frames.43
Thrashing allocation frames.43
 
39 virtual memory
39 virtual memory39 virtual memory
39 virtual memory
 
Free space managment46
Free space managment46Free space managment46
Free space managment46
 

Similar to Deleting structure.56

Double level directory structure 55(1)
Double level directory structure 55(1)Double level directory structure 55(1)
Double level directory structure 55(1)myrajendra
 
Introduction to Drupal 7 - Blocks management and contexts
Introduction to Drupal 7 - Blocks management and contextsIntroduction to Drupal 7 - Blocks management and contexts
Introduction to Drupal 7 - Blocks management and contextsKalin Chernev
 
Pure Speed Drupal 4 Gov talk
Pure Speed Drupal 4 Gov talkPure Speed Drupal 4 Gov talk
Pure Speed Drupal 4 Gov talkBryan Ollendyke
 
Introduction to Drupal 7 - Panels
Introduction to Drupal 7 - PanelsIntroduction to Drupal 7 - Panels
Introduction to Drupal 7 - PanelsKalin Chernev
 
Plain english guide to drupal 8 criticals
Plain english guide to drupal 8 criticalsPlain english guide to drupal 8 criticals
Plain english guide to drupal 8 criticalsAngela Byron
 
Allocation methods continuous method.47
Allocation methods continuous method.47 Allocation methods continuous method.47
Allocation methods continuous method.47 myrajendra
 
A Practical Approach to Managed Shared Drives
A Practical Approach to Managed Shared DrivesA Practical Approach to Managed Shared Drives
A Practical Approach to Managed Shared DrivesTAB
 
Dueling duplications RMAN vs Delphix
Dueling duplications RMAN vs DelphixDueling duplications RMAN vs Delphix
Dueling duplications RMAN vs DelphixKyle Hailey
 
Building Your Data Management Toolbox
Building Your Data Management ToolboxBuilding Your Data Management Toolbox
Building Your Data Management ToolboxStephanie Wright
 
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive PresentationNabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive PresentationNabil Nawaz
 
Introduction to Drupal 7 News section and home page block with views
Introduction to Drupal 7  News section and home page block with viewsIntroduction to Drupal 7  News section and home page block with views
Introduction to Drupal 7 News section and home page block with viewsKalin Chernev
 
Top 20 mistakes you will make on your 1st Drupal project
Top 20 mistakes you will make on your 1st Drupal projectTop 20 mistakes you will make on your 1st Drupal project
Top 20 mistakes you will make on your 1st Drupal projectIztok Smolic
 
PLNOG 6: Piotr Modzelewski, Bartłomiej Rymarski - Product Catalogue - Case Study
PLNOG 6: Piotr Modzelewski, Bartłomiej Rymarski - Product Catalogue - Case StudyPLNOG 6: Piotr Modzelewski, Bartłomiej Rymarski - Product Catalogue - Case Study
PLNOG 6: Piotr Modzelewski, Bartłomiej Rymarski - Product Catalogue - Case StudyPROIDEA
 
Drupal - Introduction to Building Library Web Site Using Drupal
Drupal - Introduction to Building Library Web Site Using DrupalDrupal - Introduction to Building Library Web Site Using Drupal
Drupal - Introduction to Building Library Web Site Using DrupalVibrant Technologies & Computers
 
Multiple Tomcat Lib Directories in Tomcat 5.5.x – Purpose and differences
Multiple Tomcat Lib Directories in Tomcat 5.5.x – Purpose and differencesMultiple Tomcat Lib Directories in Tomcat 5.5.x – Purpose and differences
Multiple Tomcat Lib Directories in Tomcat 5.5.x – Purpose and differencesVijay Prasad Gupta
 

Similar to Deleting structure.56 (20)

Double level directory structure 55(1)
Double level directory structure 55(1)Double level directory structure 55(1)
Double level directory structure 55(1)
 
Introduction to Drupal 7 - Blocks management and contexts
Introduction to Drupal 7 - Blocks management and contextsIntroduction to Drupal 7 - Blocks management and contexts
Introduction to Drupal 7 - Blocks management and contexts
 
Pure Speed Drupal 4 Gov talk
Pure Speed Drupal 4 Gov talkPure Speed Drupal 4 Gov talk
Pure Speed Drupal 4 Gov talk
 
Introduction to Drupal 7 - Panels
Introduction to Drupal 7 - PanelsIntroduction to Drupal 7 - Panels
Introduction to Drupal 7 - Panels
 
Plain english guide to drupal 8 criticals
Plain english guide to drupal 8 criticalsPlain english guide to drupal 8 criticals
Plain english guide to drupal 8 criticals
 
Varnish intro
Varnish introVarnish intro
Varnish intro
 
Allocation methods continuous method.47
Allocation methods continuous method.47 Allocation methods continuous method.47
Allocation methods continuous method.47
 
A Practical Approach to Managed Shared Drives
A Practical Approach to Managed Shared DrivesA Practical Approach to Managed Shared Drives
A Practical Approach to Managed Shared Drives
 
Dueling duplications RMAN vs Delphix
Dueling duplications RMAN vs DelphixDueling duplications RMAN vs Delphix
Dueling duplications RMAN vs Delphix
 
Building Your Data Management Toolbox
Building Your Data Management ToolboxBuilding Your Data Management Toolbox
Building Your Data Management Toolbox
 
DrupalCon 2011 Highlight
DrupalCon 2011 HighlightDrupalCon 2011 Highlight
DrupalCon 2011 Highlight
 
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive PresentationNabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
Nabil Nawaz Oracle Oracle 12c Data Guard Deep Dive Presentation
 
Xpp c user_rec
Xpp c user_recXpp c user_rec
Xpp c user_rec
 
Introduction to Drupal 7 News section and home page block with views
Introduction to Drupal 7  News section and home page block with viewsIntroduction to Drupal 7  News section and home page block with views
Introduction to Drupal 7 News section and home page block with views
 
Top 20 mistakes you will make on your 1st Drupal project
Top 20 mistakes you will make on your 1st Drupal projectTop 20 mistakes you will make on your 1st Drupal project
Top 20 mistakes you will make on your 1st Drupal project
 
PLNOG 6: Piotr Modzelewski, Bartłomiej Rymarski - Product Catalogue - Case Study
PLNOG 6: Piotr Modzelewski, Bartłomiej Rymarski - Product Catalogue - Case StudyPLNOG 6: Piotr Modzelewski, Bartłomiej Rymarski - Product Catalogue - Case Study
PLNOG 6: Piotr Modzelewski, Bartłomiej Rymarski - Product Catalogue - Case Study
 
Drupal - Introduction to Building Library Web Site Using Drupal
Drupal - Introduction to Building Library Web Site Using DrupalDrupal - Introduction to Building Library Web Site Using Drupal
Drupal - Introduction to Building Library Web Site Using Drupal
 
Ajaxworld07
Ajaxworld07Ajaxworld07
Ajaxworld07
 
Ajaxworld07
Ajaxworld07Ajaxworld07
Ajaxworld07
 
Multiple Tomcat Lib Directories in Tomcat 5.5.x – Purpose and differences
Multiple Tomcat Lib Directories in Tomcat 5.5.x – Purpose and differencesMultiple Tomcat Lib Directories in Tomcat 5.5.x – Purpose and differences
Multiple Tomcat Lib Directories in Tomcat 5.5.x – Purpose and differences
 

More from myrajendra (20)

Fundamentals
FundamentalsFundamentals
Fundamentals
 
Data type
Data typeData type
Data type
 
Hibernate example1
Hibernate example1Hibernate example1
Hibernate example1
 
Jdbc workflow
Jdbc workflowJdbc workflow
Jdbc workflow
 
2 jdbc drivers
2 jdbc drivers2 jdbc drivers
2 jdbc drivers
 
3 jdbc api
3 jdbc api3 jdbc api
3 jdbc api
 
4 jdbc step1
4 jdbc step14 jdbc step1
4 jdbc step1
 
Dao example
Dao exampleDao example
Dao example
 
Sessionex1
Sessionex1Sessionex1
Sessionex1
 
Internal
InternalInternal
Internal
 
3. elements
3. elements3. elements
3. elements
 
2. attributes
2. attributes2. attributes
2. attributes
 
1 introduction to html
1 introduction to html1 introduction to html
1 introduction to html
 
Headings
HeadingsHeadings
Headings
 
Forms
FormsForms
Forms
 
Css
CssCss
Css
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Starting jdbc
Starting jdbcStarting jdbc
Starting jdbc
 

Deleting structure.56

  • 1. File Concept, File Management, File Attributes http://raj-os.blogspot.in/ 1
  • 2. Recap In the last class, you have learnt • Single and two level directories • Tree-structured directories http://raj-os.blogspot.in/ 2
  • 3. • HOME PREVIOUS TOPIC NEXT • PREVIOUS QUESTION PAPERS FOR OS • CPP TUTORIALS http://raj-os.blogspot.in/ 3
  • 4. Objectives On completion of this period, you would be able to: • Understand how deletion of a directory from a tree structured directory is handled • Advantages and limitations of tree-structured directories • Understand acyclic-graph directory structure http://raj-os.blogspot.in/ 4
  • 5. Deleting a Directory • Two cases arise • The directory to be deleted is empty • The directory to be deleted is non empty http://raj-os.blogspot.in/ 5
  • 6. Deleting an Empty Directory • Delete its entry from its containing directory http://raj-os.blogspot.in/ 6
  • 7. Deleting a Non Empty Directory Two ways to handle the situation 1. Do not delete unless the directory is empty 2. Request confirmation from the user whether the non empty directory is to be deleted along with the directory’s files and subdirectories http://raj-os.blogspot.in/ 7
  • 8. The First Approach is used by MS-DOS • If a user wants to delete a non empty directory, he must first delete all the files in that directory • If there are any subdirectories, same procedure must be recursively applied • Involves a substantial amount of work http://raj-os.blogspot.in/ 8
  • 9. The Second Approach is used by Unix • Provide an option to the user whether that directory’s files and subdirectories are also to be deleted • More convenient than the first approach, but more dangerous if command to delete is issued in error http://raj-os.blogspot.in/ 9
  • 11. State whether the following are true or false http://raj-os.blogspot.in/ 11
  • 12. State True or False In a tree structured directory a user can not create his own subdirectories False http://raj-os.blogspot.in/ 12
  • 13. State True or False • Only a non empty directory can be removed False http://raj-os.blogspot.in/ 13
  • 14. State True or False • An acyclic graph is a natural generalization of a tree- structured scheme True http://raj-os.blogspot.in/ 14
  • 15. Other subject materials • Web designing • Micro processors • C++ tutorials • java home http://raj-os.blogspot.in/ 15