Home / Programming MCQs / Linux MCQs / Question

V

Virat Bhati • 7.23K Points
Tutor III

Q. What is the command to grant execution permission on all files and subdirectories in “/home/document/mydirectory”

(A) $ chmod –r +x /home/document/mydirectory
(B) $ chmod –R +x /home/document/mydirectory
(C) $ chmod –f –r +x /home/document/mydirectory
(D) $ chmod –F +x /home/document/mydirectory
To change the permissions on all files and subdirectories of “/home/document/mydirectory” we use “chmod” command with the option -R:

$ chmod –R +x /home/document/mydirectory

You must be Logged in to update hint/solution

Discusssion

Login to discuss.