Recent Post

File System Management

File System Management :-
    A file is a collection of related information defined by its creator. In general file is a sequence of bits, bytes,lines or records.

Some Example of file types
- Text File :- Text file is a sequence of characters organized into lines.
- Source File :- Source file is a sequence of sub routines or function.
- Object File :- Object file is a collection of words, organized into loader record Blocks.

File Attributes :- Are the parameters used to keep track of file in operating system.

(i) Name :- Name is in human Readable form (File Name)
(ii) Identifier :- Unique ID, numbers  (123)
(iii) Types :- It is specify file type (text)
(iv) Location :- It is a pointer to a device and location of file on that device
(v) Size :- It is a current size of file (1024 KB)
(vi) Protection :- It is a access control information.It means file, user, R/W)
(vii) Time & Date :- This is information i.e is used creation, modification, deletion.
(viii) User :- A user identification 

File Operations :

(i) Creating a file 
(ii) Writing a file
(iii) Reading a file
(iv) Repositioning a file
(v) Deletion a file
(vi) Truncating a file

Open File Table :-It is contains information about currently open files.

File Locking :- It is used to prevent from situations like deadlock.

File Types:

i) executable (Read to Run Machine Language program) [exe,bin]
ii) Object (Compiled, Machine Language)
iii) Source Code  ( Commands to the commands interpretor)
iv) Markup (textual data, documents)
v) Library (library of routines for Programs)
vi) Multimedia (Binary file containing audio or video information)

No comments