1.

If the file is write-protected and the directory has to write permission then we cannot delete the file.(a) True(b) FalseI had been asked this question in unit test.My doubt is from File Ownership and Permissions topic in portion Basic File Attributes of Unix

Answer»

Correct choice is (b) False

To explain I WOULD say: The term ‘WRITE-protected’ has a LIMITED meaning in the UNIX file system. A file which is write protected cannot be written, but it can be REMOVED if the DIRECTORY has to write permission.



Discussion

No Comment Found

Related InterviewSolutions