Computer Science - Unix - Discussion
Discussion Forum : Unix - Section 2 (Q.No. 17)
17.
The chmod ugo+rw note command can be represented in octal notation as
Discussion:
3 comments Page 1 of 1.
Egin said:
1 decade ago
Please see below:
Users Groups Others
rwx rwx rwx
421 421 421
Therefore the octal notation of the command chmod ugo+rw is,
chmod 666
Since if you get the total of 421.
Where
4 - write permission.
2 - read permission.
1 - execute permission.
4+2 = 6 (rw).
Users Groups Others
rwx rwx rwx
421 421 421
Therefore the octal notation of the command chmod ugo+rw is,
chmod 666
Since if you get the total of 421.
Where
4 - write permission.
2 - read permission.
1 - execute permission.
4+2 = 6 (rw).
Amol pawar said:
9 years ago
Please give me more details about this question because I am the end user.
How to select a read = 4, write = 2 & x = 1.
How to select a read = 4, write = 2 & x = 1.
SAYAK said:
9 years ago
rwx rwx rwx
100 010 001 (Binary)
4 2 1
100 010 001 (Binary)
4 2 1
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers