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
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