stat - -format="%a" /path1/subdir
https://www.cyberciti.biz/faq/get-octal-file-permissions-from-command-line-on-linuxunix/
https://unix.stackexchange.com/questions/188674/how-to-get-file-permission-in-octal
To just see octal file permissions on a GNU/Linux:$ stat -c '%a' /etc/passwd
No comments:
Post a Comment