Ticker

6/recent/ticker-posts

Advertisement

Change hostname in CentOS

 How to change hostname in CentOS


The computer hostname identification of a computer. if you changed the computer hostname and that computer in a network in that case you can easily identify that computer in that specific network. you can set to any name of your computer hostname. if you want to change the hostname of your computer use the following steps.

Change the hostname in CentOS


1. open the terminal and type following command to know name of your computer.

# hostname


2. For change the host name use the following command.

# hostnamectl set-hostname your-new-hostname (itsuupport)


3. Use the following command to verify hostname changed or not.

# hostname


4. You can also verify hostname change or using following command.

# vi /etc/hostname


5. Now restart the computer using following command.

# systemctl reboot






Post a Comment

0 Comments