Trabla: get octal file permission from command line
Solving:
This command will display human readable permissions, octal permissions and file/folder name
stat -c '%A %a %n' *
where
%A - human readable permissions
%a - octal permissions
%n - file / folder name
Example output:
-rw-r--r-- 644 index.html
drwxrwxrwx 777 moodle
No comments:
Post a Comment