Computer Science - Unix
Exercise : Unix - Section 2
- Unix - Section 1
- Unix - Section 2
- Unix - Section 3
16.
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?
17.
The chmod ugo+rw note command can be represented in octal notation as
18.
Which of the following commands is used to display the filenames in multiple columns with indication of directories and executable file?
19.
Which command is used with vi editor to search a pattern in the forward direction?
20.
Which of the following commands is used to assign executable permission to the owner of the file named "note"?
Answer: Option
Explanation:
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).
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).
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers