find命令

find命令:

 

 

find -type d

 

find . -type f -name “test.txt” // -name默认是大小写不敏感的,-iname是大小写敏感的

 

find . -regex "" // ""中间传regex

 

find  . -type f -mmin 10

 

find . -type f -mmin +10 -mmin -5

 

find . -type f -mtime 20(20days ,+20 more than 20days)

 

 

find . -size +5M (size over 5 megebytes)

 

 

find . -perm 777 (permission )

 

 

find _demo -exec chown xx:yy {} \;(或者用+来结尾)

posted @ 2021-05-05 13:11  hh9515  阅读(50)  评论(0)    收藏  举报