How chmod octal permissions work
Build each octal digit from read 4, write 2, and execute 1, then add the leading special-bits digit.
Read guideUnderstand Unix mode bits
Three focused guides explain the 12-bit 0000–7777 model, s/S/t/T display, and why read, write, and execute mean different operations for files and directories.
Build each octal digit from read 4, write 2, and execute 1, then add the leading special-bits digit.
Read guideDecode the leading octal digit and understand how each special bit shares a display position with execute.
Read guideUnderstand why read, write, and execute bits describe different operations for regular files and directories.
Read guide