[Linux] Find 命令,常用参数总结


find . -type f -cmin -1
#递归查找当前目录下n分钟前创建的(f)文件,(d)目录
#cmin changed in last n min
#mtime modified in last n days
#mmin changed in last n min
#amin accessed in last n min

#Find Size between 50MB – 100MB
find / -size +50M -size -100M

find . -name tecmint.txt
find /home -iname tecmint.txt

#Find all Empty Directories
find /tmp -type d -empty

#Find  Files Based on User
find / -user root -name tecmint.txt

#Find and remove  File
find . -type f -name "tecmint.txt" -exec rm -f {} \;

猜你喜欢

转载自blog.csdn.net/zeli1511/article/details/81187166
今日推荐