1. Linux Command Line (terminal)

Note

To change the hostname of a Linux system, you need to edit to files: hosts and hostname inside /etc/ folder

  • Edit /etc/hostname
  • sudo nano /etc/hostname

    Inside this file, you just need to change the name to a new one

  • Edit /etc/hosts
  • sudo nano /etc/hosts

    Inside this file change the value in front of the 127.0.1.1 with the same name as /etc/hostname file