[root@localhost SourceLastest]# find -name "*.o" -delete [root@localhost SourceLastest]# rm -rf `find . -name "*.o"` 转载于:https://www.cnblogs.com/xianqingzh/archive/2010/05/11/1732772.html