📌  相关文章
📜  更改主机名 ubuntu 20.04 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:42.901000             🧑  作者: Mango

代码示例2
#Change hostname
sudo hostnamectl set-hostname newHostName 
#Edit the /etc/hosts file, and replace existing hostname with a new hostname.
sudo nano /etc/hosts
#Reboot the system to changes take effect
sudo reboot