view files permissions in octal format

I was wondering which is the way to list file’s permissions in octal format. I tried to find out how to do it, using ls, but I conclude that a way to do it is to use stat command:

stat -c '%A %a %n' file

Leave a Reply

Your email address will not be published. Required fields are marked *

Prove me that you are not a robot :) * Time limit is exhausted. Please reload the CAPTCHA.