Skip to content

Instantly share code, notes, and snippets.

@theothermattm
Last active August 29, 2015 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theothermattm/8740850 to your computer and use it in GitHub Desktop.
Save theothermattm/8740850 to your computer and use it in GitHub Desktop.
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