grep  "#" fstab |grep "swap" >/dev/null || sed -i 's/^.*swap/#&/g' fstab

 

相关文章:

  • 2021-10-27
  • 2022-12-23
  • 2022-12-23
  • 2021-12-04
  • 2021-11-29
  • 2021-11-05
  • 2021-11-25
猜你喜欢
  • 2022-02-24
  • 2022-12-23
  • 2022-02-13
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案