首页 > 其他 > 详细

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

时间:2018-04-07 10:51:10      阅读:240      评论:0      收藏:0      [点我收藏+]

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

[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).

二、

 

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

原文:https://www.cnblogs.com/itcomputer/p/8730258.html

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