The Octal number to be given alogn with chmod command to make a file readable, writable and executable to the owner, readable and executable to group and others is:
A. 0
B. 755
C. 744
D. 555
E. None of the above
Answer: Option B
Solution(By Examveda Team)
In Unix, file permissions are represented by three digits in octal form. Each digit corresponds to a set of permissions: the first digit for the owner, the second for the group, and the third for others. The permissions are represented by adding up the values for read (4), write (2), and execute (1).For the owner to have read, write, and execute permissions (7 = 4 + 2 + 1).
For the group and others to have read and execute permissions (5 = 4 + 1).
So, the octal number to be given along with the chmod command to achieve these permissions is 755.
Related Questions on Unix
Which symbol will be used with grep command to match the pattern pat at the beginning of a line?
A. ^pat
B. $pat
C. pat$
D. pat^
E. None of the above
Which command is used to sort the lines of data in a file in reverse order
A. sort
B. sh
C. st
D. sort -r
E. None of the above
Which command is used to display the top of the file?
A. cat
B. head
C. more
D. grep
E. None of the above
A. cp chap?? progs
B. cp chap* progs
C. cp chap[12] /progs/*.*
D. cp chap?? /progs/*
E. None of the above
Join The Discussion