注释swap分区

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

 

posted @ 2021-03-31 11:30  s。  阅读(185)  评论(0编辑  收藏  举报