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

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

二、

 

相关文章:

  • 2021-09-30
  • 2021-04-05
  • 2021-11-27
  • 2021-09-30
  • 2021-09-08
  • 2021-06-25
  • 2022-01-21
  • 2021-07-18
猜你喜欢
  • 2021-12-22
  • 2022-02-02
  • 2021-12-10
  • 2022-02-04
  • 2022-02-03
  • 2022-02-08
  • 2021-10-26
相关资源
相似解决方案