[amp_mcq option1=”chmod g+x note” option2=”chmod u+w note” option3=”chmod u+x note” option4=”chmod ugo+x note E. None of the above” correct=”option3″]
The correct answer is C. chmod u+x note.
The chmod command is used to change the permissions of a file. The u option specifies the owner of the file, the + option adds permissions, and the x option allows the file to be executed. Therefore, the command chmod u+x note will add executable permission to the owner of the file named “note”.
The other options are incorrect for the following reasons:
- Option A,
chmod g+x note, would add executable permission to the group that owns the file. - Option B,
chmod u+w note, would add write permission to the owner of the file. - Option D,
chmod ugo+x note, would add executable permission to the owner, group, and other users of the file. - Option E, None of the above, is incorrect because it is not a valid command.