Multiple choice unix

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:

  1. 000

  2. 755

  3. 744

  4. 555

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In octal notation, 7 (binary 111) represents read, write, and execute permissions, while 5 (binary 101) represents read and execute. Therefore, 755 grants the owner full permissions and gives the group and others only read and execute permissions. 744 would leave group/others without execute permission.