How do I change my default hostname?

How do I change my default hostname?
Answer
Ubuntu change hostname command
  1. Type the following command to edit /etc/hostname using nano or vi text editor: sudo nano /etc/hostname. Delete the old name and setup new name.
  2. Next Edit the /etc/hosts file: sudo nano /etc/hosts. …
  3. Reboot the system to changes take effect: sudo reboot.
 

Tìm kiếm

Back
Top