018_线上救命稻草的几种重要方式

一、拒绝删除当前路径操作

[arun@docker1 /data/log/car.jyall]$ sudo rm -rf .
rm: refusing to remove ‘.’ or ‘..’ directory: skipping ‘.’
请对生产环境心怀敬畏.高峰期内严禁变更操作.当前时间为02:11
That's a safeguard added to most implementations of rm to work around a misfeature of some shells (including POSIX shells) where rm -rf .* would recursively remove the content of . and .. as well 
(that was fixed by the Forsyth shell and derivatives (like pdksh), zsh and fish at least).

二、

 

posted @ 2018-04-07 02:19  arun_yh  阅读(1458)  评论(0编辑  收藏  举报