Ubuntu使用find查询大文件信息

it2022-05-05  189

参考:https://blog.csdn.net/ycyk_168/article/details/83471415

通用格式:find pathname -options [-print -exec -ok …]

find / -size +100M -exec ls -lh {} ; 查找大于100M的文件 并显示文件信息

find . -type f -name ‘*.txt’ | xargs grep ‘string’ 寻找txt文件内部 包含有string的文件


最新回复(0)