Multiple choice unix

Which command is used to make all files and sub-directories in the directory (progs) executable by all users?

  1. chmod -R a x progs

  2. chmod -R 222 progs

  3. chmod -1 a x progs

  4. chmod -x a x progs

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

chmod -R a+x progs recursively makes all files and subdirectories in the 'progs' directory executable for all users. The -R flag applies permissions recursively, 'a' means all users, and '+x' adds execute permission.