linux 文件夹-文件权限设置

时间:2014-07-01 22:35:28   收藏:0   阅读:235

只设置文件夹权限为755 文件权限为644
find -type d -exec chmod 755 {} \;  
find -type f -exec chmod 644 {} \;  
或者  
find -type d|xargs chmod 755  
find -type f|xargs chmod 644

linux 文件夹-文件权限设置,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!