linxu删除某个路径下的所有文件,但是排除某一个文件

 

find ./ -mindepth 1 ! -name '需要排除的文件' -delete

 

posted on 2025-09-01 16:07  风中拥抱自由  阅读(6)  评论(0)    收藏  举报

导航