切换到要删除的目录: cd .m2 递归删除所有名称为“unknown”的文件夹 find . -name 'unknown' -type d | xargs rm -rf 转载于:https://www.cnblogs.com/liyunfei0103/p/10167626.html