🎴 Flashcard Mode

Basic Unix Commands Quiz

Card1 / 5
Mastered0
Review0
QuestionClick to flip

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

AnswerClick to flip back
A
chmod -R a+x progs
💡 Explanation:

chmod -R a+x progs makes all files and subdirectories (-R for recursive) executable for all users (a+x = all users + execute). chmod -R 222 would give write-only, not execute. chmod -1 is invalid syntax (should be -R). The command in A is the correct way to recursively set execute permissions.

Change Mode