Your computer name is visible in three places: your system settings, your network, and your command line
Your computer has a name that identifies it on your network and in your system settings. Windows calls it a "computer name" or "device name". macOS calls it a "computer name" or "host name". Linux systems use "hostname". The name you gave your computer when you first set it up is usually still there, but you may have forgotten it — or you may be using a computer someone else set up.
The fastest way to find it depends on your operating system. On Windows, open Settings and go to System > About. On a Mac, click the Apple menu and choose System Settings > General. On Linux, open a terminal and type hostname. Each method takes under a minute.
Key Takeaways
- Windows shows your computer name in Settings under System > About, listed as "Device name".
- macOS displays it in System Settings under General, shown as "Computer Name".
- Linux users can find the hostname by opening a terminal and typing the command hostname.
- Your computer name appears in network settings and file sharing dialogs if you forget where to look.
- Changing your computer name is possible in the same settings menus where you find it.
Finding your computer name in Windows 10 and 11
Open the Settings app by pressing the Windows key and typing "settings", then press Enter. Click System in the left sidebar, then scroll down and click About. Under "Device specifications", you will see "Device name" — that is your computer name. It usually looks something like "DESKTOP-ABC1234" or a custom name you chose during setup.
If you want to see it in a command window instead, press Windows key + R, type cmd, and press Enter. In the black command window that opens, type hostname and press Enter. Your computer name will appear on the next line.
You can also right-click the Start button, select System, and look for "Device name" under Device specifications. All three routes show the same information.
Finding your computer name on macOS
Click the Apple menu in the top-left corner and select System Settings (or System Preferences on older versions). Click General in the sidebar. At the top of the window, you will see "Computer Name" — that is what your Mac is called on the network.
If you want to see both the computer name and the hostname (a technical name used by the system), open Terminal instead. Press Command + Space to open Spotlight, type "terminal", and press Enter. In the terminal window, type hostname and press Enter. The output will show your system's hostname, which may differ from the friendly computer name shown in System Settings.
The computer name is what you see when you browse shared files on a network. The hostname is what the system uses internally and what other computers see when connecting remotely.
Finding your computer name on Linux
Open a terminal window. The method depends on your desktop environment — usually you can right-click the desktop and select "Open Terminal", or press Ctrl + Alt + T. Once the terminal is open, type hostname and press Enter. Your computer's hostname will appear on the next line.
If you want more detail, type hostnamectl and press Enter. This shows the static hostname, the transient hostname (used during the current session), and the pretty hostname (a friendly name). Most users only need the static hostname, which is what the hostname command shows.
Some Linux systems also let you see the computer name in the system settings GUI, but the terminal method works on all distributions and is usually faster.
Where your computer name appears in daily use
Your computer name shows up in several places you may already be familiar with. When you share files over a network, other computers see your machine listed by this name. In Windows, it appears in File Explorer under "Network". On a Mac, it shows in Finder under "Shared" in the sidebar. In Linux file managers, it appears in the network browsing section.
Your computer name also appears in system dialogs when you print to a network printer, connect to a shared drive, or set up remote access. If someone asks "what is your computer name so I can send you a file", they are asking for this identifier.
If you are troubleshooting a network problem or contacting technical support, having your computer name ready can speed up the conversation. Support staff sometimes use it to identify which machine is having the issue.
Changing your computer name if you want a different one
If you do not like your current computer name, you can change it. In Windows 11, go to Settings > System > About, then click "Rename this PC". Type the new name and restart your computer. In Windows 10, the process is similar but the button may be labeled differently — look for "Rename your PC" or "Rename this device".
On a Mac, go to System Settings > General and click the "Edit" button next to "Computer Name". Type the new name and click "Done". The change takes effect immediately, though some network services may take a few minutes to update.
On Linux, the process varies by distribution. In Ubuntu and Debian-based systems, you can use the terminal command sudo hostnamectl set-hostname newname, replacing "newname" with what you want. You will need to restart for the change to take full effect.
Why your computer name matters for networking and troubleshooting
Your computer name is how other devices on your network identify and connect to your machine. If you share files, printers, or folders with other computers, they find you by this name. When you connect to a shared network drive, the system uses your computer name to authenticate and log the connection.
For troubleshooting, your computer name helps technical support staff locate your machine in network logs. If your internet is slow or a printer is not responding, support may ask for your computer name to check what is happening on your network. It is also useful if you are setting up remote access or connecting to a VPN — some systems require you to know your computer name to establish the connection.
Changing your computer name does not affect your files, passwords, or installed programs. It only changes how the machine identifies itself to other devices and systems.
Frequently Asked Questions
Is my computer name the same as my username?
No. Your username is the account you log into on your computer. Your computer name is what the machine itself is called on the network. You can have multiple user accounts on one computer, but the computer name stays the same for all of them. You can see both in Windows Settings — the username is under "Your info" and the computer name is under "About".
Can I see my computer name from another computer on the network?
Yes. On Windows, open File Explorer and click Network in the sidebar — you will see all computers on your network listed by their computer names. On a Mac, open Finder and click Network in the sidebar. On Linux, open your file manager and look for the network browsing section. The computer name is how other machines identify yours.
What if I forgot my computer name and cannot access settings?
You can still find it from another computer on the network. On Windows, open File Explorer and click Network to see all connected machines. On a Mac, open Finder and click Network. You can also ask your network administrator or check your router's connected devices list — most routers display the names of all connected computers.
Does changing my computer name affect my files or passwords?
No. Changing your computer name does not delete files, change passwords, or affect installed programs. It only changes how the machine identifies itself on the network. Some network connections may temporarily drop and reconnect after you change the name, but this is normal and resolves itself within a few minutes.
What is the difference between computer name and IP address?
Your computer name is a human-readable identifier like "DESKTOP-ABC1234" or "MacBook-Pro". Your IP address is a number like "192.168.1.5" that the network uses to route data to your machine. The computer name is easier to remember and use for file sharing. The IP address is what the network actually uses behind the scenes to find your computer.