File System in Operating System

File System In OS

File System in Operating System

A set of OS Services that provides Files and Directories for user applications is known as file system manager.

File:-A named, ordered collection of information.

File System:-A set of files and directories contained on a single drive. The raw data on the drive is translated to this abstract view of files and directories by the file system manager according to the specification of the file system standard.

The file manager administers the file system by:

  1. Storing the information on a device
  2. Mapping the block storage to a logical view
  3. Allocating/deallocating storage
  4. Providing directories                                

                                         File System in OS                         

File Operations:-

  • Creating a file
  • Writing a File:-To write a file, we make a system call specifying both the
    name of the file and the information to be written to the file
  • Reading a File
  • Repositing withing a file
  • Deleting a File
  • Truncating a File

Types of File

File System in OS General Extension Function
Archive arc, zip, tar Related files grouped into one compressed file
Batch bat, sh Commands to the command interpreter
Executable exe, com, bin Read to run machine language program
Multimedia mpeg, mov, rm For containing audio/video information
Object obj, o Compiled, machine language not linked
Source Code C, java, pas, asm, a Source code in various languages
Text txt, doc Textual data, documents
Word Processor wp, tex, rrf, doc Various word processor formats

File Attributes

File System in OS Types Operations
Name Doc Create
Type Exe Open
Size Jpg Read
Creation Data Xis Write
Author C Append
Last Modified Date Truncate
Protection class Delete
  • Name – only information kept in human-readable form
  • Identifier – unique tag (number) identifies file within file system
  • Type – needed for systems that support different types
  • Location – pointer to file location on device
  • Size – current file size
  • Protection – controls who can do reading, writing, executing
  • Time, date, and user identification – data for protection, security, and
    usage monitoring