Skip to content

Instantly share code, notes, and snippets.

@itomg
Last active December 30, 2015 07:59
Show Gist options
  • Save itomg/7799604 to your computer and use it in GitHub Desktop.
Save itomg/7799604 to your computer and use it in GitHub Desktop.
Show file or directory permission number, like ls -l, used for chmod 644 [file or directory path]
## Linux
stat -c %a [file or directory path]
## Mac OS X
stat -f "%Lp" [filename]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment