You've successfully subscribed to Nicholas Workshop
Great! Next, complete checkout for full access to Nicholas Workshop
Welcome back! You've successfully signed in.
Success! Your account is fully activated, you now have access to all content.
Success! Your billing info is updated.
Billing info update failed.

How to Change Computer Name in Ubuntu

Nicholas Wong
Nicholas Wong
  1. Open a terminal window.

  2. At the input prompt you will see this structure:

nicholas@computer-name:~$ _  
  1. So you have to edit the hostname file:
sudo nano /etc/hostname  
  1. When prompted, enter the administrator password and hit Enter.

  2. The hostname file will open, showing the current computer name. Replace the name with the desired new name.

  3. Hit Ctrl+X to save and exit.

  4. New name will show when you open a new terminal window.

Unsorted

Nicholas Wong

Fullstack software engineer with strong background in computer science and extensive experience in software engineering and architecture. Studied in NYU, worked in Yahoo, Rakuten and Manulife.