MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

UNIX

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The write permission for a directory determines that ____
A
we can write to a directory file
B
we can read the directory file
C
we can execute the directory file
D
we can add or remove files to it
Explanation: 

Detailed explanation-1: -Explanation: The write permission of a directory does not imply that we can write to the directory. Only kernel is allowed to do that. It simply means that we can create or remove files from the directory.

Detailed explanation-2: -write (w) Write permission implies the ability to change the contents of the file (for a file) or create new files in the directory (for a directory). execute (x) Execute permission on files means the right to execute them, if they are programs.

Detailed explanation-3: -The execute ( x ) permission lets users move ( cd ) into directories. The write ( w ) permission lets users add and remove files.

Detailed explanation-4: -To remove read and write permissions from foo. txt use the chmod command to take away both the read and write permissions. By typing go-rw, you are telling the system to remove read and write permissions for the group and for others from the file foo. txt.

There is 1 question to complete.