Created
March 11, 2020 10:15
-
-
Save BenSlabbert/0f05c66755a997b9eb8cf49017fc7c48 to your computer and use it in GitHub Desktop.
display file permissions in octal format
This file contains hidden or 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
| #!/bin/bash | |
| # https://unix.stackexchange.com/questions/188674/how-to-get-file-permission-in-octal | |
| stat -c "%a" file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment