stat -c %a [filename]ref: https://askubuntu.com/questions/29542/display-files-permissions-in-number-format-i-e-0755