码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2018-04-07 11:28:44      阅读:1102      评论:0      收藏:0      [点我收藏+]

标签:cto   direct   doc   docker   ike   remove   add   car   blog   

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

[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_线上救命稻草的几种重要方式

标签:cto   direct   doc   docker   ike   remove   add   car   blog   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!