How to Set or Change Hostname in Linux – Linux Tips And Tricks
Learn how to set or change hostname in Linux.
Its a very trivial steps but need to reboot your Linux box once you are done.
Here are the commands.
sudo nano /etc/hostname
sudo nano /etc/hosts
sudo reboot
Here are the additional command which is not required as a steps to changing the hostname.
a) Find out Ubuntu version
lsb_release -a
b) Display current hostname
hostname
#linux #ubuntu #redhat #bash
Views : 97
linux