Last active
June 30, 2016 03:21
-
-
Save jasperf/dcad4256902bdcb7d221 to your computer and use it in GitHub Desktop.
Show chmod file permissions from the command line with numbers (octals) using stat #chmod #permissions #unix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stat -c "%a %n" * | |
// -c is for file format, %a is for octal, %n is for file name | |
//http://geeklog.adamwilson.info/article/58/getting-file-permissions-in-octal-on-OS-X | |
//OSX Yosemite does not work with -c use: | |
stat -f '%A %a %N' * |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment