Skip to content

Instantly share code, notes, and snippets.

@artburkart
Created October 1, 2018 05:44
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 artburkart/26a48d91e9d6ce3030fcc269a4fc554d to your computer and use it in GitHub Desktop.
Save artburkart/26a48d91e9d6ce3030fcc269a4fc554d to your computer and use it in GitHub Desktop.
Display perms on file as number
#!/usr/bin/env bash
# https://askubuntu.com/questions/152001/how-can-i-get-octal-file-permissions-from-command-line#152003
stat -c "%a %n" /usr/bin
stat -c "%a %n" *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment