Open vieyahn2017 opened 6 years ago
【Linux】文件查找与删除(find) http://blog.csdn.net/qq_28602957/article/details/70239643
def system_security_config_031(ip, port, user, pwd): """ 查找系统中不属于任何用户的文件及目录 使用 df --local -P | awk {'if (NR!=1) print $6'} | xargs -I '{}' find '{}' -xdev -nouser -ls 进行查找 """ cmd = "df --local -P | awk {'if (NR!=1) print $6'} | xargs -I '{}' find '{}' -xdev -nouser -ls | awk '{print$11}'"
find -iname *log -cmin -20
find -iname *log -cmin -20 -exec grep -in "100.133.10.21" -l {} ;
【Linux】文件查找与删除(find) https://github.com/vieyahn2017/iBlog/issues/38