Q. What is the command to grant execution permission on all files and subdirectories in “/home/document/mydirectory”
β
Correct Answer: (B)
$ chmod –R +x /home/document/mydirectory
Explanation: 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
$ chmod –R +x /home/document/mydirectory