Home > System Tutorial > LINUX > body text

How to change the host name in Ubuntu 15.04? Ubuntu, how to change the host name in 15.04

王林
Release: 2024-01-04 11:22:43
forward
739 people have browsed it

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!

Related labels:
source:jb51.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!