Home > Article > System Tutorial > How to change the host name in Ubuntu 15.04? Ubuntu, how to change the host name in 15.04
1. Temporary modification;
root@ubuntu15:/#hostname XXXX
In this way, the host name is temporarily changed to XXXX, but the effective host name will not be displayed immediately under the terminal. Re-open a terminal window (the terminal connected through ssh needs to be reconnected). In this way, the new The host name is not saved in the system and will be restored to the original host name after the system is restarted.
2. Permanent modification:
Directly edit the contents of /etc/hostname as:
XXXX
After restarting, the host name is changed to XXXX and remains unchanged after restarting.
How to modify the host name on CentOS or RHEL 7: https://www.jb51.net/os/RedHat/544986.html
How to modify the path name displayed in Ubuntu terminal is too long? https://www.jb51.net/os/Ubuntu/366632.html
How to change the host name (Ubuntu Redhat) under Linux: https://www.jb51.net/LINUXjishu/544965.html
How to change the host name in Ubuntu? How to change the host name in Ubuntu: https://www.jb51.net/os/Ubuntu/544959.html
The above is the detailed content of How to change the host name in Ubuntu 15.04? Ubuntu, how to change the host name in 15.04. For more information, please follow other related articles on the PHP Chinese website!