一、拒绝删除当前路径操作
[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).
二、