Decimal to Octal
What this does
Converts a base-10 number to base 8. 8 becomes 10; 493 becomes 755.
When to use it
- Unix file permissions —
chmod 755is octal for rwxr-xr-x. - Octal escapes in C and shell.
Good to know
Each octal digit is exactly three binary digits, which is why permissions map so neatly.