find ./ -type d | xargs -i chmod 755 {}
find ./ -type f | xargs -i chmod 644 {}
文件:find . -type -f | xargs -i chmod xxx {}
目录:find . -type -d | xargs -i chmod xxx {}
chmod 755 /root/xxx.txt
chmod 755 /root
转载于:https://blog.51cto.com/11376854/1859775
find ./ -type d | xargs -i chmod 755 {}
find ./ -type f | xargs -i chmod 644 {}
文件:find . -type -f | xargs -i chmod xxx {}
目录:find . -type -d | xargs -i chmod xxx {}
chmod 755 /root/xxx.txt
chmod 755 /root
转载于:https://blog.51cto.com/11376854/1859775