I noticed this just now, when using find and stat to get the permissions of all the items in /usr/local/share/locale before I recursively change them. stat shows the permissions in a numeric format that I'm not familiar with—all the directories are 40755 and the files are 100644. I'm guessing that the last three are just normal octal permissions (which I already know about), but what do the 40s and 100s mean?
Tell me more
×
Super User is a question and answer site for
computer enthusiasts and power users. It's 100% free, no registration required.
|
|
|||
|
So the leading 100 means it's a regular file, and the leading 40 means it's a directory. |
|||||||||
|
statuses symbolic (drwx) output on my system. How are you calling it?which stat? – Daniel Beck♦ Aug 13 '12 at 7:46find /usr/local/share/locale -exec stat -f '%p %N' {} \;.statis/usr/bin/stat. This is on OS X Mountain Lion; are you on Linux? – Blacklight Shining Aug 13 '12 at 8:02