The fastest way depends on your operating system

Your computer username is the name you use to log in — it appears in the top-right corner of your screen on Mac, in the Start menu on Windows, and in the terminal on Linux. The quickest route is usually your login screen: restart your computer and look at the names listed before you enter your password. If your computer is already running, you can find it in seconds without restarting.

The method you use matters because Windows, Mac, and Linux store this information in different places. Knowing which operating system you have and where to look saves you time and confusion.

Key Takeaways

  • On Windows, press the Windows key and type "whoami" into the search box, or open Settings and look under "Your info" to see your account name.
  • On Mac, click the Apple menu, select "System Settings," then "General," and your username appears next to the computer name at the top.
  • On Linux, open a terminal and type whoami to display your username when ready.
  • Your username is different from your computer name — the username is what you log in with, while the computer name is what appears on your network.
  • If you see an email address instead of a username on Windows, that is your Microsoft account login, and your local username may be different.

Finding your username on Windows 10 or 11

The simplest method on Windows is to look at the Start menu. Click the Start button (the Windows logo in the bottom-left corner), and your username appears in the top-left of the menu that opens. It may show as a name like "James" or as an email address if you signed in with a Microsoft account.

If you want to confirm your local username rather than your Microsoft account name, open Settings by pressing Windows key + I. Go to "System," then "About," and scroll down to find "Device name" and your account information. Your username also appears in the File Explorer address bar — open File Explorer, and you will see a path like C:\Users\YourUsername.

Another quick method is to right-click on "This PC" or "My Computer" on your desktop, select "Properties," and look for "Full computer name" — your username is the folder name under C:\Users\ that matches your account.

Finding your username on Mac

On Mac, the fastest way is to look at the top-left corner of your screen. Click the Apple menu, then select "System Settings" (or "System Preferences" on older versions). Go to "General," and your username appears next to the computer name at the very top of the window.

You can also find it in the Finder. Open Finder, click "Finder" in the menu bar, select "Settings," and go to the "Sidebar" tab. Your username appears next to the house icon in the sidebar — click it to see your home folder, and the folder name is your username.

If you prefer the terminal, open "Terminal" from Applications > Utilities, type whoami, and press Enter. Your username prints on the next line.

Finding your username on Linux

Linux makes this straightforward. Open a terminal (usually by pressing Ctrl + Alt + T or finding "Terminal" in your applications menu), type whoami, and press Enter. Your username appears on the next line.

You can also look at the terminal prompt itself — it usually displays your username before the @ symbol. For example, if the prompt reads james@computer:~$, your username is "james." If you want to see all users on the system, type cat /etc/passwd in the terminal, and each line shows a username followed by a colon.

The difference between username and computer name

Your username and your computer name are not the same thing, and confusing them can make troubleshooting harder. Your username is what you type when you log in — it is personal to your account. Your computer name is the name your machine uses on a network, and multiple users can share the same computer with different usernames.

When you set up a new computer, the installer usually suggests a computer name based on your username, but you can change one without changing the other. If you are trying to find your computer name instead, look in the same places: Windows shows it under "Device name" in Settings, Mac shows it in System Settings next to your username, and Linux displays it in the terminal prompt after the @ symbol.

What to do if you see an email address instead of a username

On Windows, if your login screen or Settings shows an email address instead of a name, you signed in with a Microsoft account rather than a local account. This email is your login credential, but your local username may be different. To find your local username, open File Explorer and look at the path — it reads C:\Users\LocalUsername, and that folder name is your actual local username on the computer.

You can also open Command Prompt (press Windows key + R, type cmd, and press Enter), then type whoami and press Enter. The result shows your domain or computer name followed by a backslash and your local username — for example, DESKTOP-ABC123\james. The part after the backslash is your local username.

Frequently Asked Questions

Is my username the same as my password?

No. Your username is the name you log in with, and your password is the secret code you enter after typing your username. Anyone can see your username on the login screen, but only you should know your password. Never share your password with anyone, even if they ask for your username.

Can I change my username after I set up my computer?

On Windows and Mac, you can change your account name through Settings, though the folder under C:\Users\ or /Users/ keeps its original name. On Linux, you can rename your account using the terminal, but it is more complex. Changing your username after setup can cause problems with file permissions and program settings, so do it only if necessary.

What if I forgot my username and can't see it on the login screen?

If your computer is off, turn it on and look at all the account names listed on the login screen — your username is one of them. If your computer is on but you are logged in, use the methods above for your operating system. If you are locked out entirely, you may need to restart in safe mode or use a password reset tool, depending on your system.

Why do I need to know my username?

You need your username to troubleshoot network problems, set up file sharing, install software that asks for account details, or help a technician understand your system. It is also useful when you are setting up a new device and need to transfer files or settings from your old computer.