Which command should be used to give execute access to a file to everybody in the system?
-
chmod u+c filename
-
chmod g+x filename
-
chmod og-rx filename
-
chmod o+x filename
D
Correct answer
Explanation
To give execute access to everybody in the system, you need 'chmod o+x filename' which adds execute permission for 'others' (all users except owner and group). Option A has incorrect syntax (u+c doesn't exist), option B only gives execute to group members, and option C removes read and execute from others and group (og-rx). The question specifically asks for execute access for 'everybody', which means all users including others.