Q40
Which command is used to make all files and sub-directories in the directory (progs) executable by all users?
A.
chmod -R a+x progs
AnswerB.
chmod -R 222 progs
C.
chmod -1 a+x progs
D.
chmod -x a+x progs
E.
None of the above
Answer: Option A
Solution
Answer: Option A
Solution:
In Unix, the chmod command is used to change the permissions of files and directories. The -R option is used to recursively change permissions for the specified directory and its subdirectories. The a+x part of the command grants execute permission to all users (owner, group, and others). So, chmod -R a+x progs makes all files and subdirectories in the progs directory executable by all users.Therefore, Option A is the correct command to achieve the desired task.