现在hosts 里面 其中一行插入 8.8.8.8 g.cn

echo -e "8.8.8.8 g.cn" > /etc/hosts;

这样的话整个hosts就只剩下这一行。

比如我想在指定一行添加。 且保留原来内容。 echo可以实行吗?