Is there a way to get files/directories permissions in number format "0777" instead of "-rw--r--r" format?
You can display the octal permissions for a file using the stat command:
Or by using find:
Note that find is recursive, and will print all files in all subdirectories as well. You can use options like