find by size
This article is from a personal blog https://applelin8.github.io/2020/12/16/find-by-size,Reprint please affirm
content
highlight
find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec|time] [path...] [expression]
查找当前目录下文件大小大于1M的文件
find ./ -type f -size +1M
查找当前目录下文件大小大于10M的文件,并显示它们的详细信息.
find . -size +10M -ls
搜索当前目录中,所有过去10分钟中更新过的普通文件。如果不加-type f参数,则搜索普通文件+特殊文件+目录。
find . -type f -mmin -10
搜索当前目录中大于10M的文件,并显示详细信息.
find . -size +10M |xargs -I % ls -ahl %
评论:
技术文章推送
手机、电脑实用软件分享
微信公众号:farmer in city