vieyahn2017 / shellv

shell command test and study
4 stars 1 forks source link

8.16 Linux命令--文件查找与删除(find) #17

Open vieyahn2017 opened 6 years ago

vieyahn2017 commented 6 years ago

【Linux】文件查找与删除(find) https://github.com/vieyahn2017/iBlog/issues/38

vieyahn2017 commented 6 years ago

【Linux】文件查找与删除(find) http://blog.csdn.net/qq_28602957/article/details/70239643

vieyahn2017 commented 6 years ago

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}'"

vieyahn2017 commented 5 years ago

find -iname *log -cmin -20
vieyahn2017 commented 5 years ago
find -iname *log -cmin -20 -exec grep -in "100.133.10.21" -l {} ;