How to Change Your Device Name in Ubuntu

Photo of author

By Oluwaseun Bamisile

Published

Do you want to change the device name of your Ubuntu computer but have no idea how? You should read through this detailed guide, as it features multiple ways to accomplish that.

Before we proceed, it is crucial to mention that the procedures provided in this guide were based on the Ubuntu 22.04 LTS OS. Thus, the steps may differ slightly on other Ubuntu OS versions.

Option 1: Change Your Device Name Through System Settings

The most common way to change the device name in Ubuntu is through the system settings in the graphical user interface (GUI). To accomplish that, carefully observe the subsequent procedures and screenshot images below.

  1. Left-click the Show Applications button on the Ubuntu dock. Next, type “settings” in the search field, then select the Settings icon from the search result.
Alternatively, click the quick access panel at the top right corner of the Ubuntu desktop and left-click Settings from the displayed options.
Change Your Device Name In Ubuntu Through System Settings
  1. When the Settings open, click About among the menus on the left pane.
  1. On the About page, select Device Name.
Change Your Device Name In Ubuntu Through System Settings
  1. Now, input a preferred device name for your Ubuntu computer in the input field on the Rename Device dialogue box that appears. Finally, click the green Rename button at the top of the dialogue box.

Option 2: Change Your Device Name via Terminal

You can literally perform almost any task on your Ubuntu computer through the terminal. Thus, it’s no surprise we can also change the device name in Ubuntu via the terminal.

To be precise, you can execute this task using the hostnamectl command. The following procedures demonstrate how to achieve that.

  1. Right-click any free area on your Ubuntu desktop and select Open in Terminal from the options that appear. Alternatively, use the Ctrl + Alt + T shortcut to launch the terminal in Ubuntu.
  1. When the terminal opens, input the command below to change the device name of your Ubuntu computer. However, replace “newname” with a new name of your choice.
hostnamectl set-hostname newname

For example, if I want to change my Ubuntu computer’s device name to “itechguides” below is what the command should look like.

hostnamectl set-hostname itechguides
Change Your Device Name In Ubuntu Via Terminal

Frequently Asked Questions

1. Is it safe to change the device name in Ubuntu?

Yes, it is totally safe to change the device name of your Ubuntu computer. However, ensure you follow the proper procedures and make sure to use an appropriate name.

2. How do I change the device name in Ubuntu through the GUI?

You can change the device name of your Ubuntu computer via the GUI using the system settings. To do that, follow the steps below.
a) Left-click the Show Applications button on the Ubuntu dock.
b) Next, type “settings” in the search field, then select the Settings icon from the search result.
c) When the Settings open, click About among the menus on the left pane.
d) On the About page, select Device Name.
e) Now, input a preferred name for your Ubuntu computer in the input field on the Rename Device dialogue box that appears.
f) Finally, click the green Rename button at the top of the dialogue box.

3. Will changing the device name affect other settings on my Ubuntu system?

No, it won’t. Changing the name of your Ubuntu computer shouldn’t have any impact on other settings.

4. What is Ubuntu?

Ubuntu is a Linux distribution that was developed by Mark Shuttleworth and released on 8 July 2005. Furthermore, this operating system is based on Debian and features free and open-source software.

Ubuntu was officially released in three editions – server, desktop, and core. Moreover, all of the Ubuntu editions can run as a standalone computer or as a virtual machine.

5. Can I change the name of my Ubuntu system through the terminal?

Yes, you can change the name of your Ubuntu system via the terminal. To do that, follow the subsequent steps.
a) Use the Ctrl + Alt + T keyboard shortcut to launch the terminal in Ubuntu.
b) When the terminal opens, execute the “hostnamectl set-hostname newname” command. However, replace “newname” with a new name for your Ubuntu system before running the command.

Conclusion

Changing the device name can add a personal touch to your Ubuntu computer, making it more memorable. Moreover, it makes it easier for your computer to be identified on a network.

Gladly, this guide provided two easy and straightforward methods to modify the device name in Ubuntu. To be specific, we discussed how to carry out this task through the system settings in the Ubuntu GUI.

This guide also taught us how to modify the name of an Ubuntu computer by using the hostnamectl command in the terminal. Thus, with the procedures included in this guide, changing the device name of your Ubuntu computer shouldn’t be a problem.

Hopefully, you found this guide interesting and helpful. If you did, click on “Yes” beside the “Was this page helpful” question below.

You may also express your thoughts and opinions by using the “Leave a Reply” form at the bottom of this page.

Finally, visit our Linux how-to page to find other helpful Linux guides.

About the Author

Photo of author

Oluwaseun Bamisile

Oluwaseun is the Lead Content Editor at Itechguides.com. He holds a National Diploma in Computer Science (currently studying part-time for his Higher National Diploma). An internet geek with a love for automobiles, he writes product reviews, tech articles, and how-to guides on the site.

Related Articles

Get in Touch

We're committed to writing accurate content that informs and educates. To learn more, read our Content Writing Policy, Content Review Policy, Anti-plagiarism Policy, and About Us.

However, if this content does not meet your expectations, kindly reach out to us through one of the following means:

  1. Respond to "Was this page helpful?" above
  2. Leave a comment with the "Leave a Comment" form below
  3. Email us at [email protected] or via the Contact Us page.

Leave a comment

Send this to a friend