If you want to see permissions of a file or a directory in both human readable and octal notation issue this command:

Share This Post

If you want to see permissions of a file or a directory in both human readable and octal notation issue this command:  

Linux:

stat -c "%n %a %A" /tmp # replace /tmp with your file/dir
The output is as follows:
/tmp 1777 drwxrwxrwt
   

Mac OS X:

stat -f "%N %A %Sp" /private/tmp # replace /private/tmp with your file/dir
The output is as follows:
/private/tmp 1777 drwxrwxrwt
   
Follow me:
Latest posts by saki (see all)

Want to collaborate on an upcoming project?