1.

What is a directory file?(a) a directory containing data(b) a directory containing details of the files and subdirectories it contains(c) a directory contains files(d) a directory containing data and filesI have been asked this question during an online exam.The query is from Categories of Files in chapter The File System of Unix

Answer»

Correct option is (b) a directory containing details of the files and SUBDIRECTORIES it CONTAINS

For explanation I would say: A directory file contains no data but some details of the subdirectories and files that it contains. Directory files contain an ENTRY for every file and SUBDIRECTORY in it and each entry has some necessary INFORMATION regarding files and subdirectories.



Discussion

No Comment Found

Related InterviewSolutions