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
πŸ’¬ Discuss
βœ… 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
Explanation by: Virat Bhati
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

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
249
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Virat Bhati
Publisher
πŸ“ˆ
97%
Success Rate