Linux – Show the the permissions of a file with numbers

If you want to show the the permissions of a file with numbers instead of with letters you can use stat:

stat -c '%a' file.ext