- open "/etc/hostname" file using text editor
- command: sudo gedit /etc/hostname
- modify the existing hostname value with new
- open "/etc/hosts" file using text editor
- command: sudo gedit /etc/hosts
- modify the existing hostname value with new
- execute below command to refresh the hostname
- command: sudo service hostname restart
Already 10000+ students are trained in ORIENIT under Mr.Kalyan, Cloudera CCA175 Certified Consultant, Apache Contributor, 18+ years of IT exp, IIT Kharagpur, Gold Medalist
Saturday, 30 April 2016
How to change the hostname in ubuntu
Labels:
Ubuntu
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment