Showing posts with label FILE SYSTEMS. Show all posts
Showing posts with label FILE SYSTEMS. Show all posts

Wednesday, December 16, 2015

FILE SYSTEMS


1.What is a file?

A file is a named collection of related information that is recorded on secondary storage. A file contains either programs or data. A file has certain "structure" based on its type.

2.List the various file attributes.

A file has certain other attributes, which vary from one operating system to another, but typically consist of these:Name, identifier, type, location, size, protection, time, date and user identification

3.What are the various file operations?

The six basic file operations are

•  Creating a file
•  Writing a file
•  Reading a file
•  Repositioning within a file
•  Deleting a file
•  Truncating a file 

4.What are the information associated with an open file?

Several pieces of information are associated with an open file which may be:
•  File pointer
•  File open count
•  Disk location of the file
•  Access rights