首页 > 系统服务 > 详细

Linux Command Tips

时间:2015-05-14 00:42:04      阅读:183      评论:0      收藏:0      [点我收藏+]

1.delete all executable files under certain directory

find /directory -type f -executable -delete

or

find /directory  -type f -executable -exec rm -f {} \;

Above command will delete the executable files in sub-directory.

To specifically delete all executable files in your home directory (not in sub-directories) and ask you whether you want to delete each file you can do something like

find ~ -type f -executable -maxdepth 0 -exec rm -i {} \;

 

Linux Command Tips

原文:http://www.cnblogs.com/bukekangli/p/4502083.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!