The fastest way to find your username
Your computer username is the name that appears when you log in or that shows in the top-right corner of your screen. The quickest way to find it depends on what operating system you use.
On Windows, press the Windows key and type "cmd" to open Command Prompt, then type whoami and press Enter. Your username will appear as a line of text, usually in the format "COMPUTERNAME\username". On Mac, click the Apple menu in the top-left, select "System Settings," then click "General" and look at the "Computer Name" field — though this shows your device name, not your user account name. For your actual account name on Mac, open Terminal (search for it in Spotlight), type whoami, and press Enter. On Linux, open a terminal and type whoami to see your username when ready.
Key Takeaways
- On Windows, open Command Prompt and type whoami to see your username in seconds.
- On Mac, use the Terminal app and type whoami to find your user account name, which is different from your computer name.
- On Linux, open any terminal and type whoami to display your username.
- Your username also appears in file paths, user folders, and login screens, so you can spot it there if you prefer not to use the command line.
Finding your username in Windows Settings
If you prefer not to use Command Prompt, Windows Settings shows your username in a few places. Click the Start button, then select "Settings" (the gear icon). In the Settings window, click "Accounts" on the left side, then click "Your info" at the top. Your account name appears under "Your info" as a blue link or text label.
You can also find your username by opening File Explorer, right-clicking "This PC" on the left, and selecting "Properties." Scroll down to the "Computer name, domain, and workgroup settings" section. Your username does not appear here directly, but you can see it by opening Command Prompt and typing whoami as described above.
Finding your username on Mac
On Mac, your user account name and your computer name are two different things. To find your account name, open the Terminal app by pressing Command+Space, typing "terminal," and pressing Enter. Type whoami and press Enter. The text that appears is your username.
You can also find your account name in System Settings. Click the Apple menu, select "System Settings," then click "General" on the left. Look for "Computer Name" — this is your device name, not your account name. To see your account name instead, click "Users & Groups" (or "Accounts" depending on your Mac version), and your account will be listed with a folder icon next to it.
Finding your username on Linux
Linux makes this straightforward. Open a terminal window (usually by right-clicking the desktop or pressing Ctrl+Alt+T), type whoami, and press Enter. Your username appears on the next line.
You can also see your username in the terminal prompt itself — it usually appears before the @ symbol. For example, if your prompt reads "marcus@mycomputer:~$", your username is "marcus." If you want to see all user accounts on the system, type cat /etc/passwd in the terminal, though this shows system accounts as well as regular user accounts.
Where your username appears on your screen
You do not need to search for your username — it is visible in several places on your computer already. On Windows, look at the top-right corner of the Start menu or the lock screen when you first turn on your computer. On Mac, click the Apple menu and look at the top of the dropdown — your account name appears there. On Linux, your username is usually shown in the terminal prompt or in the top panel of your desktop environment.
Your username also appears in file paths. When you open File Explorer on Windows or Finder on Mac, look at the address bar or sidebar. You will see a folder labeled with your username — this is your home directory, and the path usually reads something like "C:\Users\YourUsername" on Windows or "/Users/YourUsername" on Mac.
What to do if you see a different name than expected
Sometimes your username does not match the name you see in Settings or on your account profile. This happens because Windows and Mac allow you to set a "display name" that is different from your actual login username. Your login username is the one that matters for file paths, command-line tools, and network access — this is what whoami shows you.
If you need to change your username on Windows, you must use the Local Users and Groups tool or create a new account, as renaming an existing account is not straightforward. On Mac, you can change your account name in System Settings under "Users & Groups," though this can affect file permissions and is usually not necessary. On Linux, use the usermod command in the terminal, though this also requires administrator access.
Why you might need your username
Your username is necessary when you set up network connections, configure remote access, troubleshoot file permission problems, or contact technical support. It is also what appears in shared folders and network drives when you access files from another computer. Some software and online services ask for your computer username during setup, so knowing it saves time.
If you are setting up a new device or transferring files, having your username ready makes the process faster. It is also useful information to have if you ever need to contact support — they may ask for your username to help diagnose problems with your account or device.
Frequently Asked Questions
Is my username the same as my password?
No. Your username is the name you use to log in, and your password is the secret code that proves you are the owner of that account. Your username is not secret — it appears on your screen and in file paths. Your password should never be shared or written down.
Can I have more than one username on the same computer?
Yes. Most computers allow multiple user accounts, each with its own username, password, and files. You can switch between accounts by logging out or using the user switcher in your system settings. Each account is separate and has its own home folder and settings.
What if I forgot my password but I know my username?
On Windows, you can reset your password from the login screen by clicking "I forgot my password" and answering security questions if you set them up. On Mac, restart your computer and hold Command+S to enter Single-User Mode, then use the passwd command to reset your password. On Linux, restart in recovery mode or use a live USB to reset your password. If none of these work, you may need to contact your system administrator or the person who set up your computer.
Why does my username have a backslash or @ symbol in it?
When whoami shows your username with a backslash (like "COMPUTERNAME\username" on Windows) or an @ symbol (like "username@computername" on Linux), the part before the symbol is your computer or domain name, and the part after is your actual username. Your username is just the part after the backslash or @ symbol.