File permissions (eg. rwxrwxrwx) may be represented numerically (eg. 777). These are equivalent and interchangable.
The conversion is done by assigning a value to r (4), w (2) and x (1), then adding them together. This is done for
the owner, for the group, and for the world, then these numbers are placed in a single string. Example:
original permissions:
rwxrw-r--
English translation:
OWNER: read, write, execute allowed
GROUP: read, write allowed
WORLD: read allowed
conversion of English translation to numbers:
OWNER: 4 + 2 + 1 = 7
GROUP: 4 + 2 = 6
WORLD: 4 = 4
final numerical representation of original permissions:
764