Skip to content

Instantly share code, notes, and snippets.

@theothermattm
Last active Aug 29, 2015
Embed
What would you like to do?
Find out current octal permissions of a file for chmod-ing
# linux
stat -c %a FILE
# OS X
stat -f "%OLp" FILENAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment