How to change hostname in Ubuntu?
Answer:
To see the current hostname setting, see
# cat /etc/hostname
www.example.com
To change it, edit this file
sudo vi /etc/hostname
Save it and reboot your system and perform the step above to check again.
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
How to change hostname in Ubuntu?
Answer:
To see the current hostname setting, see
# cat /etc/hostname
www.example.com
To change it, edit this file
sudo vi /etc/hostname
Save it and reboot your system and perform the step above to check again.
Mac OS X: How to Add Hosts to Local Hosts File
Mac OS X 10.0 through 10.1.5