+
80
-

centos linux如何使用find排除文件夹或目录查找?

centos linux如何使用find排除文件夹或目录查找?

网友回复

+
0
-

find 搜索目录 !排除目录可写多个,示例如下:

#!/bin/bash
find /data/ ! -path "/proc/*" ! -path "/home/*" -type f -size +500M | sort -rh|xargs ls -lh | awk '{ print $9 ": " $5 }'

我知道答案,我要回答