sudo vim /etc/hostname
修改你需要的,保存退出
sudo vim /etc/hosts
reboot
linux===Ubuntu修改设备名称
原文:https://www.cnblogs.com/botoo/p/8143354.html