1.

A file has a permission set as 000 i.e. — — —. Can the file be deleted?(a) Yes(b) NoThis question was addressed to me by my college director while I was bunking the class.This interesting question is from Changing File Ownership and Permissions in chapter Basic File Attributes of Unix

Answer»

The correct ANSWER is (a) Yes

The explanation is: The file having permission set as 000 is useless i.e. it is not readable, writable or executable. But we can delete the file USING directory PERMISSIONS. If the directory has write permission, we can easily add or remove a file from it.



Discussion

No Comment Found

Related InterviewSolutions