You should see a line stating your current hostname. For eg. damien-desktop

  1. Change the hostname to something you desired. Save and close the file.
  2. Back in your terminal, type:
  3. Change the line: to

Save and close the file. Restart the computer. Your new hostname should appear in the terminal now.