1、切换到root用户权限

https://blog.csdn.net/attagain/article/details/11987297

2、结合sudo和tee两个命令来实现: w !sudo tee %

https://blog.csdn.net/weixin_39169700/article/details/79204353

相关文章:

  • 2021-10-15
  • 2021-10-27
  • 2021-10-17
  • 2021-12-10
  • 2022-02-08
  • 2021-05-22
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案