Find chmod number/numeric value for specific file

To find the permissions of a file in numeric format (i.e 644, 755 etc), run the following command:

stat --format '%a' filename_to_get_numeric_permissions