• Tools
  • Articles
  • Q&A
  • Login
0 0

ubuntu用什么命令行可以递归的删除当前目录以及子目录下后缀名为.keep的所有文件?



根据大家的答案做一个汇总:

  1. find ./ -name "*.keep" | xargs rm -rf
  2. find ./ -name "*.keep" -delete

Linux Ubuntu shell

12 years, 11 months ago
扮猪吃老虎

扮猪吃老虎


share
扮猪吃老虎 12 years, 11 months ago

Answers

0
   
  find ./ -name "*.keep" | xargs rm -rf
 

answered 12 years, 11 months ago
扮猪吃老虎

goldsky


share
goldsky answered 12 years, 11 months ago

Your Answer

Ask Question
Related questions

sed: can't move 'wifi.confl5tFtt' to 'wifi.conf...

linux shell中,./文件名运行一个文件和 直接文件名运行一个文件有什么区别

shell下编译源码

linux下目录权限的问题

tar 命令 报错 tar: Cowardly refusing to create an e...

linux二进制bin文件和shell

Related posts

学习Linux的几点建议

最先进的战舰也使用Linux