首先进入到对应目录 for a in * do if [ ! -s $a ] then rm -rf $a fi done 相关文章: 2021-09-10 2022-01-04 2021-05-16 2021-12-07 2022-12-23 2021-06-15 2021-11-03