You should see a line stating your current hostname. For eg. damien-desktop
- Change the hostname to something you desired. Save and close the file.
- Back in your terminal, type:
- Change the line: to
Save and close the file. Restart the computer. Your new hostname should appear in the terminal now.