-ok 会增加提示环节 -perm根据权限进行查找
[root@sina-vmallservice-bridge-228-20-163 ~]
< chmod ... tmp/ > ? y
[root@sina-vmallservice-nginx-front-228-200-33 data]
find /data/ae ! -perm 777 -exec chmod -R 777 {} \;
find /data/ams ! -perm 777 -exec chmod -R 777 {} \;
find /data/apollo* ! -perm 777 -exec chmod -R 777 {} \;
find /data/honor ! -perm 777 -exec chmod -R 777 {} \;
find /data/huawei ! -perm 777 -exec chmod -R 777 {} \;
find /data/in* ! -perm 777 -exec chmod -R 777 {} \;
find /data/mx ! -perm 777 -exec chmod -R 777 {} \;
find /data/my ! -perm 777 -exec chmod -R 777 {} \;
find /data/portal ! -perm 777 -exec chmod -R 777 {} \;
find /data/nasdir ! -perm 777 -exec chmod -R 777 {} \;
find /data/pms ! -perm 777 -exec chmod -R 777 {} \;
find /data/pts ! -perm 777 -exec chmod -R 777 {} \;
find /data/sa ! -perm 777 -exec chmod -R 777 {} \;
find /data/ssc ! -perm 777 -exec chmod -R 777 {} \;
find /data/vmall ! -perm 777 -exec chmod -R 777 {} \;
*/10 * * * * find /data/ae ! -perm 777 -exec chmod -R 777 {} \; > /dev/null 2>&1 &
*/10 * * * * find /data/ae ! -perm 777 -exec chmod -R 777 {} \; > /dev/null 2>&1 &
*/10 * * * * find /data/ams ! -perm 777 -exec chmod -R 777 {} \; > /dev/null 2>&1 &
*/10 * * * * find /data/apollo* ! -perm 777 -exec chmod -R 777 {} \; > /dev/null 2>&1 &
*/5 * * * * find /data/honor ! -perm 777 -exec chmod -R 777 {} \;
*/6 * * * * find /data/huawei ! -perm 777 -exec chmod -R 777 {} \;
*/7 * * * * find /data/in* ! -perm 777 -exec chmod -R 777 {} \;
*/5 * * * * find /data/mx ! -perm 777 -exec chmod -R 777 {} \;
*/6 * * * * find /data/my ! -perm 777 -exec chmod -R 777 {} \;
*/7 * * * * find /data/portal ! -perm 777 -exec chmod -R 777 {} \;
*/10 * * * * find /data/nasdir ! -perm 777 -exec chmod -R 777 {} \; > /dev/null 2>&1 &
*/10 * * * * find /data/pms ! -perm 777 -exec chmod -R 777 {} \; > /dev/null 2>&1 &
*/10 * * * * find /data/pts ! -perm 777 -exec chmod -R 777 {} \; > /dev/null 2>&1 &
*/10 * * * * find /data/sa ! -perm 777 -exec chmod -R 777 {} \; > /dev/null 2>&1 &
*/10 * * * * find /data/ssc ! -perm 777 -exec chmod -R 777 {} \; > /dev/null 2>&1 &
*/10 * * * * find /data/vmall ! -perm 777 -exec chmod -R 777 {} \; > /dev/null 2>&1 &
find /data/ae ! -perm 777
find /data/ams ! -perm 777
find /data/apollo* ! -perm 777
find /data/honor ! -perm 777
find /data/huawei ! -perm 777
find /data/in* ! -perm 777
find /data/mx ! -perm 777
find /data/my ! -perm 777
find /data/nasdir ! -perm 777
find /data/pms ! -perm 777
find /data/portal ! -perm 777
find /data/pts ! -perm 777
find /data/sa ! -perm 777
find /data/ssc ! -perm 777
find /data/vmall ! -perm 777
删除大于10分钟的文件
find /logs/eop-ot-service/eop-ot-service-*/archive/ -maxdepth 3 -mindepth 3 -type f -not -newermt `date -d "-10 minutes" '+%Y-%m-%dT%H:%M:%S'` -exec rm -rf {} \;
find /logs/eop-ot-service/eop-ot-service-*/archive/ -type f -not -newermt `date -d "-10 minutes" '+%Y-%m-%dT%H:%M:%S'` -exec rm -rf {} \;
find /logs/eop-ot-service/eop-ot-service-*/backup/ -type f -not -newermt `date -d "-10 minutes" '+%Y-%m-%dT%H:%M:%S'` -exec rm -rf {} \;
可以查看超过十分钟的文件的具体信息 时间
find /logs/eop-ot-service/eop-ot-service-*/archive/ -type f -not -newermt `date -d "-10 minutes" '+%Y-%m-%dT%H:%M:%S'` -ls