Octal (numeric) file permissions in linux

If wanting to see permissions as numeric like 755, the command is

stat -c '%a' file

An example:

stat -c '%a' .Xauthority

With numeric and alphabetical with user and group

stat -c '%a %A %U %G %n' .Xauthority

If wanting all files inside folder

stat -c '%a %A %U %G %n' *