Which of the following commands is used to assign executable permission to the owner of the file named "note"?
A:
chmod g+x note
B:
chmod u+w note
C:
chmod u+x note
D:
chmod ugo+x note
Answer:C
Users selection:
u - user: the owner of the file.
g - group: users who are members of the file's group.
o - others: users who are not the owner of the file or members of the group.
a - all: all three of the above, is the same as ugo.
Permissions:
r - read
w - write
x - execute
So, u+x => Execute (x) permission to Owner (u).
Discuss About this Question.
Which command is used with vi editor to search a pattern in the forward direction?
Which of the following commands is used to absolutely assign all permissions to the owner, read and write permissions to the group and only executable permission to the others of the file note?
Discuss About this Question.