例如删除当前目录下所有名字为DerivedData的目录 find . -name "DerivedData" -type d -exec rm -r "{}" \; 转载于:https://www.cnblogs.com/yibinpan/p/10403344.html