Skip to content

Instantly share code, notes, and snippets.

@BenSlabbert
Created March 11, 2020 10:15
Show Gist options
  • Save BenSlabbert/0f05c66755a997b9eb8cf49017fc7c48 to your computer and use it in GitHub Desktop.
Save BenSlabbert/0f05c66755a997b9eb8cf49017fc7c48 to your computer and use it in GitHub Desktop.
display file permissions in octal format
#!/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