SlideShare une entreprise Scribd logo
1  sur  25
File Concept, File Management, File
Attributes




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


• In the last class, you have learnt

   – Various disk scheduling algorithms

   – Selection of a particular disk scheduling
    algorithm




                    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
know:
   -     Understand file Concept
   -     Understand file operations
   -     Know Various file types




                  http://raj-os.blogspot.in/    4
File Concept
File
       - A named collection of related information
       - Recorded on secondary storage

User’s perspective
       - Smallest allotment of logical secondary storage
Files represent both
     - Programs
       - Data

                       http://raj-os.blogspot.in/          5
File concept

Program Files
                        -      Source form
                        -      Object form
                         -     Executable form
Data Files
                        -      Numeric
                         -     Alphabetic
                        -      Alphanumeric
                         -     Binary


                http://raj-os.blogspot.in/       6
File Concept

File Formats

    -     Free form
          Ex. Text files
    -     Rigidly formatted




                 http://raj-os.blogspot.in/   7
File Concept

Second definition of a file


   A file is a sequence of bits, bytes, lines or
 records whose meaning is defined by the file’s
 creator and user




                    http://raj-os.blogspot.in/     8
Types of Information in a file

-     Source Programs
-     Object Programs
-     Executable Programs
-     Numeric Data
-     Text
-     Student Records
-     Graphic Images
-     Sound recordings
-     Video recordings

             http://raj-os.blogspot.in/   9
Structure of a File
      A file has a defined structure according to its type
Text file
     A sequence of characters organized into lines or
  pages
Source file
      -       A sequence of subroutines and
              functions

      -       Each of which is further organized as
                    declarations followed by executable
                    statements
                          http://raj-os.blogspot.in/         10
Object File

A sequence of bytes organized into blocks
understandable by the system linker

Executable file
A series of code sections that can be brought into
memory executed by the loader




                   http://raj-os.blogspot.in/        11
Frequently Asked Questions
•   1. Define file
•   2. Explain file management
•   3. List the basic file operations
•   4. Explain various file operations
•   5.List and explain the common file types




                     http://raj-os.blogspot.in/   12
1. A file is

    a)   A secondary storage device
    b)   One of CPU’s registers
    c)   A named collection of related information
    d)   None of the above




                    http://raj-os.blogspot.in/       13
2. A file can contain


  a) Only numeric data

  b) Only alphabetic data

  c)   Only graphical data

  d) All of the above




                        http://raj-os.blogspot.in/   14
3. Information in a file is defined by

  a) The operating system

  b) Loader

  c)   Creator of file

  d) None of the above




                         http://raj-os.blogspot.in/   15
4. File management refers to

  a) Organization of files

  b) Allocation of CPU to user programs

  c)   Allocation of main memory to user programs

  d) None of the above




                      http://raj-os.blogspot.in/    16
5. Which of the following is not a file operation


   a) Delete

   b) Create

   c) Read

   d) None




                        http://raj-os.blogspot.in/   17
6 When a file is truncated


  a) New contents are written into the file

  b) The file is physically removed from the storage
     device

  c) All file attributes remain unchanged except file
  length which is reset to zero

  d) None of the above


                      http://raj-os.blogspot.in/        18
7. A file seek operation is also known as

  a) Deleting a file

  b) Reading a file

  c)   writing a file

  d) Repositioning within a file




                        http://raj-os.blogspot.in/   19
8. Open file table is maintained by
   a) The user

   b) The compiler

   c)   The operating system

   d) All of the above




                         http://raj-os.blogspot.in/   20
9. A file name usually contains


   a) Three parts

    b)   Two parts

    c)   Five parts

    d)   Four parts




                       http://raj-os.blogspot.in/   21
10 . An object file is

  a) A ready to run program file

  b) A library of routines

  c)   A compiled but not linked machine language file

  d) None of the above




                         http://raj-os.blogspot.in/      22
11. When you type a C program using an editor


  a) An object file is generated

  b) An executable file is created

  c)   A batch file is created

  d) A source code file is created



                        http://raj-os.blogspot.in/   23
12. The length of file name extension is
   a) 1 to 3 characters

   b) 1 to 5 characters

   c)   1 to 10

   d) Unlimited




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

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

home


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

Contenu connexe

Tendances

File concept and access method
File concept and access methodFile concept and access method
File concept and access methodrajshreemuthiah
 
Chapter06 Managing Disks And Data Storage
Chapter06      Managing  Disks And  Data  StorageChapter06      Managing  Disks And  Data  Storage
Chapter06 Managing Disks And Data StorageRaja Waseem Akhtar
 
Presentation On RAID(Redundant Array Of Independent Disks) Basics
Presentation On RAID(Redundant Array Of Independent Disks) BasicsPresentation On RAID(Redundant Array Of Independent Disks) Basics
Presentation On RAID(Redundant Array Of Independent Disks) BasicsKuber Chandra
 
Chapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage SystemsChapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage SystemsWayne Jones Jnr
 
Disk and File System Management in Linux
Disk and File System Management in LinuxDisk and File System Management in Linux
Disk and File System Management in LinuxHenry Osborne
 
Microsoft Windows File System in Operating System
Microsoft Windows File System in Operating SystemMicrosoft Windows File System in Operating System
Microsoft Windows File System in Operating SystemMeghaj Mallick
 
Operating Systems - File Management
Operating Systems -  File ManagementOperating Systems -  File Management
Operating Systems - File ManagementDamian T. Gordon
 
Operating System Operations ppt.pptx
Operating System Operations ppt.pptxOperating System Operations ppt.pptx
Operating System Operations ppt.pptxMSivani
 
File system.
File system.File system.
File system.elyza12
 
File Management – File Concept, access methods, File types and File Operation
File Management – File Concept, access methods,  File types and File OperationFile Management – File Concept, access methods,  File types and File Operation
File Management – File Concept, access methods, File types and File OperationDhrumil Panchal
 
Mass Storage Structure
Mass Storage StructureMass Storage Structure
Mass Storage StructureVimalanathan D
 
Operating system paging and segmentation
Operating system paging and segmentationOperating system paging and segmentation
Operating system paging and segmentationhamza haseeb
 
Page replacement algorithms
Page replacement algorithmsPage replacement algorithms
Page replacement algorithmssangrampatil81
 
File System and File allocation tables
File System and File allocation tablesFile System and File allocation tables
File System and File allocation tablesshashikant pabari
 

Tendances (20)

File concept and access method
File concept and access methodFile concept and access method
File concept and access method
 
Chapter06 Managing Disks And Data Storage
Chapter06      Managing  Disks And  Data  StorageChapter06      Managing  Disks And  Data  Storage
Chapter06 Managing Disks And Data Storage
 
Presentation On RAID(Redundant Array Of Independent Disks) Basics
Presentation On RAID(Redundant Array Of Independent Disks) BasicsPresentation On RAID(Redundant Array Of Independent Disks) Basics
Presentation On RAID(Redundant Array Of Independent Disks) Basics
 
File system structure
File system structureFile system structure
File system structure
 
RAID LEVELS
RAID LEVELSRAID LEVELS
RAID LEVELS
 
Chapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage SystemsChapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage Systems
 
RAID
RAIDRAID
RAID
 
Disk and File System Management in Linux
Disk and File System Management in LinuxDisk and File System Management in Linux
Disk and File System Management in Linux
 
Microsoft Windows File System in Operating System
Microsoft Windows File System in Operating SystemMicrosoft Windows File System in Operating System
Microsoft Windows File System in Operating System
 
Operating Systems - File Management
Operating Systems -  File ManagementOperating Systems -  File Management
Operating Systems - File Management
 
Linux file system
Linux file systemLinux file system
Linux file system
 
Operating System Operations ppt.pptx
Operating System Operations ppt.pptxOperating System Operations ppt.pptx
Operating System Operations ppt.pptx
 
File system.
File system.File system.
File system.
 
File Management – File Concept, access methods, File types and File Operation
File Management – File Concept, access methods,  File types and File OperationFile Management – File Concept, access methods,  File types and File Operation
File Management – File Concept, access methods, File types and File Operation
 
Directory structure
Directory structureDirectory structure
Directory structure
 
Mass Storage Structure
Mass Storage StructureMass Storage Structure
Mass Storage Structure
 
Operating system paging and segmentation
Operating system paging and segmentationOperating system paging and segmentation
Operating system paging and segmentation
 
operating system structure
operating system structureoperating system structure
operating system structure
 
Page replacement algorithms
Page replacement algorithmsPage replacement algorithms
Page replacement algorithms
 
File System and File allocation tables
File System and File allocation tablesFile System and File allocation tables
File System and File allocation tables
 

En vedette

Deleting structure.56
Deleting structure.56Deleting structure.56
Deleting structure.56myrajendra
 
Set model and page fault.44
Set model and page fault.44Set model and page fault.44
Set model and page fault.44myrajendra
 
File directory definition 54(2)
File directory definition 54(2)File directory definition 54(2)
File directory definition 54(2)myrajendra
 
Operations on a directory 54(3
Operations on a directory 54(3Operations on a directory 54(3
Operations on a directory 54(3myrajendra
 
Disk scheduling.49
Disk scheduling.49Disk scheduling.49
Disk scheduling.49myrajendra
 
38 paged segmentation
38 paged segmentation38 paged segmentation
38 paged segmentationmyrajendra
 
Issues in acyclic graph directories.57 to 58
Issues in acyclic graph directories.57 to 58Issues in acyclic graph directories.57 to 58
Issues in acyclic graph directories.57 to 58myrajendra
 
File management53(1)
File management53(1)File management53(1)
File management53(1)myrajendra
 
41 page replacement fifo
41 page replacement fifo41 page replacement fifo
41 page replacement fifomyrajendra
 
34 single partition allocation
34 single partition allocation34 single partition allocation
34 single partition allocationmyrajendra
 
Acyclic grapch directory 56(2)
Acyclic grapch directory 56(2)Acyclic grapch directory 56(2)
Acyclic grapch directory 56(2)myrajendra
 
35. multiplepartitionallocation
35. multiplepartitionallocation35. multiplepartitionallocation
35. multiplepartitionallocationmyrajendra
 
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
 
Advantages of tree structured directories(56(1)
Advantages of tree structured directories(56(1)Advantages of tree structured directories(56(1)
Advantages of tree structured directories(56(1)myrajendra
 
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
 

En vedette (20)

Deleting structure.56
Deleting structure.56Deleting structure.56
Deleting structure.56
 
Set model and page fault.44
Set model and page fault.44Set model and page fault.44
Set model and page fault.44
 
File directory definition 54(2)
File directory definition 54(2)File directory definition 54(2)
File directory definition 54(2)
 
Operations on a directory 54(3
Operations on a directory 54(3Operations on a directory 54(3
Operations on a directory 54(3
 
Disk scheduling.49
Disk scheduling.49Disk scheduling.49
Disk scheduling.49
 
33
3333
33
 
38 paged segmentation
38 paged segmentation38 paged segmentation
38 paged segmentation
 
Issues in acyclic graph directories.57 to 58
Issues in acyclic graph directories.57 to 58Issues in acyclic graph directories.57 to 58
Issues in acyclic graph directories.57 to 58
 
File management53(1)
File management53(1)File management53(1)
File management53(1)
 
41 page replacement fifo
41 page replacement fifo41 page replacement fifo
41 page replacement fifo
 
34 single partition allocation
34 single partition allocation34 single partition allocation
34 single partition allocation
 
Acyclic grapch directory 56(2)
Acyclic grapch directory 56(2)Acyclic grapch directory 56(2)
Acyclic grapch directory 56(2)
 
35. multiplepartitionallocation
35. multiplepartitionallocation35. multiplepartitionallocation
35. multiplepartitionallocation
 
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
 
Advantages of tree structured directories(56(1)
Advantages of tree structured directories(56(1)Advantages of tree structured directories(56(1)
Advantages of tree structured directories(56(1)
 
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
 

Similaire à Files concepts.53

Operating System Practice : Meeting 4 - operasi file dan struktur direktori-s...
Operating System Practice : Meeting 4 - operasi file dan struktur direktori-s...Operating System Practice : Meeting 4 - operasi file dan struktur direktori-s...
Operating System Practice : Meeting 4 - operasi file dan struktur direktori-s...Syaiful Ahdan
 
File protection.59 to 60
File protection.59 to 60File protection.59 to 60
File protection.59 to 60myrajendra
 
CNIT 152 13 Investigating Mac OS X Systems
CNIT 152 13 Investigating Mac OS X SystemsCNIT 152 13 Investigating Mac OS X Systems
CNIT 152 13 Investigating Mac OS X SystemsSam Bowne
 
File management
File managementFile management
File managementMohd Arif
 
MODULE 3.1 updated-18cs56.pptx
MODULE 3.1 updated-18cs56.pptxMODULE 3.1 updated-18cs56.pptx
MODULE 3.1 updated-18cs56.pptxManasaPJ1
 
AdvFS/Advanced File System Ccncepts
AdvFS/Advanced File System CcnceptsAdvFS/Advanced File System Ccncepts
AdvFS/Advanced File System CcnceptsJustin Goldberg
 
Diversos extensoes_de_arquivos_mais_conhecidas
 Diversos extensoes_de_arquivos_mais_conhecidas Diversos extensoes_de_arquivos_mais_conhecidas
Diversos extensoes_de_arquivos_mais_conhecidasDaniel Carloni
 
9780538745840 ppt ch05
9780538745840 ppt ch059780538745840 ppt ch05
9780538745840 ppt ch05Terry Yoast
 
Management file and directory in linux
Management file and directory in linuxManagement file and directory in linux
Management file and directory in linuxZkre Saleh
 
Jayse farrell resume
Jayse farrell resumeJayse farrell resume
Jayse farrell resumeJayse Farrell
 

Similaire à Files concepts.53 (20)

Operating System Practice : Meeting 4 - operasi file dan struktur direktori-s...
Operating System Practice : Meeting 4 - operasi file dan struktur direktori-s...Operating System Practice : Meeting 4 - operasi file dan struktur direktori-s...
Operating System Practice : Meeting 4 - operasi file dan struktur direktori-s...
 
Asp folders and web configurations
Asp folders and web configurationsAsp folders and web configurations
Asp folders and web configurations
 
File protection.59 to 60
File protection.59 to 60File protection.59 to 60
File protection.59 to 60
 
File
FileFile
File
 
DFSNov1.pptx
DFSNov1.pptxDFSNov1.pptx
DFSNov1.pptx
 
CNIT 152 13 Investigating Mac OS X Systems
CNIT 152 13 Investigating Mac OS X SystemsCNIT 152 13 Investigating Mac OS X Systems
CNIT 152 13 Investigating Mac OS X Systems
 
Python file handling
Python file handlingPython file handling
Python file handling
 
File management
File managementFile management
File management
 
Asp .net folders and web.config
Asp .net folders and web.configAsp .net folders and web.config
Asp .net folders and web.config
 
MODULE 3.1 updated-18cs56.pptx
MODULE 3.1 updated-18cs56.pptxMODULE 3.1 updated-18cs56.pptx
MODULE 3.1 updated-18cs56.pptx
 
AdvFS/Advanced File System Ccncepts
AdvFS/Advanced File System CcnceptsAdvFS/Advanced File System Ccncepts
AdvFS/Advanced File System Ccncepts
 
Diversos extensoes_de_arquivos_mais_conhecidas
 Diversos extensoes_de_arquivos_mais_conhecidas Diversos extensoes_de_arquivos_mais_conhecidas
Diversos extensoes_de_arquivos_mais_conhecidas
 
9780538745840 ppt ch05
9780538745840 ppt ch059780538745840 ppt ch05
9780538745840 ppt ch05
 
Asp .net folders and web.config
Asp .net folders and web.configAsp .net folders and web.config
Asp .net folders and web.config
 
Management file and directory in linux
Management file and directory in linuxManagement file and directory in linux
Management file and directory in linux
 
Jayse farrell resume
Jayse farrell resumeJayse farrell resume
Jayse farrell resume
 
Linux 4 you
Linux 4 youLinux 4 you
Linux 4 you
 
Files in Python.pptx
Files in Python.pptxFiles in Python.pptx
Files in Python.pptx
 
Files in Python.pptx
Files in Python.pptxFiles in Python.pptx
Files in Python.pptx
 
5263802.ppt
5263802.ppt5263802.ppt
5263802.ppt
 

Plus de 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
 

Files concepts.53

  • 1. File Concept, File Management, File Attributes http://raj-os.blogspot.in/ 1
  • 2. Recap • In the last class, you have learnt – Various disk scheduling algorithms – Selection of a particular disk scheduling algorithm 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 know: - Understand file Concept - Understand file operations - Know Various file types http://raj-os.blogspot.in/ 4
  • 5. File Concept File - A named collection of related information - Recorded on secondary storage User’s perspective - Smallest allotment of logical secondary storage Files represent both - Programs - Data http://raj-os.blogspot.in/ 5
  • 6. File concept Program Files - Source form - Object form - Executable form Data Files - Numeric - Alphabetic - Alphanumeric - Binary http://raj-os.blogspot.in/ 6
  • 7. File Concept File Formats - Free form Ex. Text files - Rigidly formatted http://raj-os.blogspot.in/ 7
  • 8. File Concept Second definition of a file A file is a sequence of bits, bytes, lines or records whose meaning is defined by the file’s creator and user http://raj-os.blogspot.in/ 8
  • 9. Types of Information in a file - Source Programs - Object Programs - Executable Programs - Numeric Data - Text - Student Records - Graphic Images - Sound recordings - Video recordings http://raj-os.blogspot.in/ 9
  • 10. Structure of a File A file has a defined structure according to its type Text file A sequence of characters organized into lines or pages Source file - A sequence of subroutines and functions - Each of which is further organized as declarations followed by executable statements http://raj-os.blogspot.in/ 10
  • 11. Object File A sequence of bytes organized into blocks understandable by the system linker Executable file A series of code sections that can be brought into memory executed by the loader http://raj-os.blogspot.in/ 11
  • 12. Frequently Asked Questions • 1. Define file • 2. Explain file management • 3. List the basic file operations • 4. Explain various file operations • 5.List and explain the common file types http://raj-os.blogspot.in/ 12
  • 13. 1. A file is a) A secondary storage device b) One of CPU’s registers c) A named collection of related information d) None of the above http://raj-os.blogspot.in/ 13
  • 14. 2. A file can contain a) Only numeric data b) Only alphabetic data c) Only graphical data d) All of the above http://raj-os.blogspot.in/ 14
  • 15. 3. Information in a file is defined by a) The operating system b) Loader c) Creator of file d) None of the above http://raj-os.blogspot.in/ 15
  • 16. 4. File management refers to a) Organization of files b) Allocation of CPU to user programs c) Allocation of main memory to user programs d) None of the above http://raj-os.blogspot.in/ 16
  • 17. 5. Which of the following is not a file operation a) Delete b) Create c) Read d) None http://raj-os.blogspot.in/ 17
  • 18. 6 When a file is truncated a) New contents are written into the file b) The file is physically removed from the storage device c) All file attributes remain unchanged except file length which is reset to zero d) None of the above http://raj-os.blogspot.in/ 18
  • 19. 7. A file seek operation is also known as a) Deleting a file b) Reading a file c) writing a file d) Repositioning within a file http://raj-os.blogspot.in/ 19
  • 20. 8. Open file table is maintained by a) The user b) The compiler c) The operating system d) All of the above http://raj-os.blogspot.in/ 20
  • 21. 9. A file name usually contains a) Three parts b) Two parts c) Five parts d) Four parts http://raj-os.blogspot.in/ 21
  • 22. 10 . An object file is a) A ready to run program file b) A library of routines c) A compiled but not linked machine language file d) None of the above http://raj-os.blogspot.in/ 22
  • 23. 11. When you type a C program using an editor a) An object file is generated b) An executable file is created c) A batch file is created d) A source code file is created http://raj-os.blogspot.in/ 23
  • 24. 12. The length of file name extension is a) 1 to 3 characters b) 1 to 5 characters c) 1 to 10 d) Unlimited http://raj-os.blogspot.in/ 24
  • 25. Other subject materials • Web designing • Micro processors • C++ tutorials • java home http://raj-os.blogspot.in/ 25