Linux changes the name after root@

Modify the configuration file
vi /etc/hostname

Then restart to take effect. Note that Linux has various restart methods. The following is a safe restart.
Restart command

reboot

Guess you like

Origin blog.csdn.net/A_234_789/article/details/107534892