Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 5
    You are wrong about the 777 vs 0777. Both are octal (decimal makes no sense anyway in this case), but in four-character form, the first digit sets the special bits (sticky & setuid). Commented Feb 10, 2015 at 14:01
  • 3
    @orion Occasionally it actually is true, e.g. in a C-like code chmod(777) would actually be the equivalent of running chmod 1411 (i.e. the chmod command with argument 1411). Commented Feb 10, 2015 at 17:39
  • 2
    ... which in the case of the syscall (or its wrapper) and the binary bearing the same name can be a bit confusing. Commented Feb 10, 2015 at 17:46
  • 4
    Python Master Race solved this backwards problem by banning all "numbers" that start with 0, forcing the user to be explicit if they want anything other than decimal, e.g. hex: 0x1FF, binary: 0b111111111 or octal: 0o777. PYTHON POWER Commented Feb 11, 2015 at 3:42
  • Picture source? Commented Jun 12, 2017 at 23:04