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


5.What are the different accessing methods of a file?

The different types of accessing a file are:
•  Sequential access: Information in the file is accessed sequentially

•    Direct access: Information in the file can be accessed without any particular order.

•    Other access methods: Creating index for the file, indexed sequential access method (ISAM) etc.

6.What is Directory?

The device directory or simply known as directory records information-such as name, location, size, and type for all files on that particular partition. The directory can be viewed as a symbol table that translates file names into their directory entries.

7.What are the operations that can be performed on a directory?

The operations that can be performed on a directory are
•  Search for a file
•  Create a file
•  Delete a file
•  Rename a file
•  List directory
•  Traverse the file system



No comments:

Post a Comment