它們是在 Unix 上獲取目錄的CHMOD值和所有者名稱的任何命令
預期輸出: PATH/OF/DIR 777 ADMIN
uj5u.com熱心網友回復:
stat -c "%n %a %U" -- *
根據需要將通配符更改為特定目錄。
來自man stat:
-c --format=FORMAT
use the specified FORMAT instead of the default; output a newline after each use of FORMAT
%a access rights in octal (note '#' and '0' printf flags)
%n file name
%U user name of owner
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/317377.html
