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
B. 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(By Examveda Team)
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.
Related Questions on Unix
Which symbol will be used with grep command to match the pattern pat at the beginning of a line?
A. ^pat
B. $pat
C. pat$
D. pat^
E. None of the above
Which command is used to sort the lines of data in a file in reverse order
A. sort
B. sh
C. st
D. sort -r
E. None of the above
Which command is used to display the top of the file?
A. cat
B. head
C. more
D. grep
E. None of the above
A. cp chap?? progs
B. cp chap* progs
C. cp chap[12] /progs/*.*
D. cp chap?? /progs/*
E. None of the above
Join The Discussion