Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Actually I'd like to use octal. 0777 for example.

But fuck this particular type conversion semantic.



Which - seeing like that, were the Linux file permissions originally octal? When thinking about permissions and permutations... and old magic numbers, that seems like the bits might fit.


Well they were grouped in blocks of 3 bits so octal is a good representational format for 3 bits.


Just switch to ugo / +- / rwx, much more intuitive.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: