Where to find your username on any operating system
Your computer username is the account name you use to log in each time you start your machine. On Windows, it appears in the bottom left corner of your lock screen. On a Mac, it shows in the Apple menu under System Settings. On Linux, you can see it in the terminal or in your file manager's sidebar. The fastest way is usually to look at your screen right now — most operating systems display it somewhere visible without you needing to dig into settings.
If you are not sure where to look or your screen does not show it clearly, the steps below walk you through finding it on each system. You will need this username if you are setting up a new device, troubleshooting a problem with tech support, or configuring software that asks for your account name.
Key Takeaways
- On Windows, your username appears on the lock screen in the bottom left corner, or you can press the Windows key and type "cmd" to open Command Prompt and type "whoami" to see it when ready.
- On a Mac, click the Apple menu in the top left, select System Settings, then click General and look for the computer name — your username is listed separately under Users and Groups.
- On Linux, open a terminal window and type "whoami" to see your username, or look in the file manager sidebar where your home folder usually shows your account name.
- If you see multiple usernames on your computer, the one you use to log in is your primary account; administrator accounts and guest accounts are separate.
Finding your username on Windows
The easiest place to look on Windows is your lock screen. When your computer is locked or you have just turned it on, look at the bottom left corner — your username appears there in white text. If your screen is already unlocked, lock it by pressing the Windows key and the letter L together, then look at the lock screen again.
If you want to find it without locking your screen, open Command Prompt. Press the Windows key, type "cmd" without quotes, and press Enter. A black window will open. Type "whoami" and press Enter. Your username will appear on the next line in the format "computername\username" — the part after the backslash is your username.
You can also find it in Settings. Press the Windows key, type "Settings," and open the Settings app. Click "Accounts" on the left side, then click "Your info" at the top. Your username appears under "Account" near the top of the page.
Finding your username on Mac
On a Mac, click the Apple menu in the very top left corner of your screen. A dropdown menu will appear. Look for "System Settings" or "System Preferences" depending on your macOS version, and click it. A new window will open.
Once System Settings is open, click "General" in the left sidebar. In the main panel on the right, look for a section that shows your computer name and other account details. Your username may appear here, but if it does not, click "Users and Groups" in the left sidebar instead. You will see a list of accounts on your computer — the one with a house icon next to it is your primary account, and that is your username.
The fastest method is to open Terminal, which is a text-based tool on every Mac. Press Command and Space together to open Spotlight search, type "Terminal," and press Enter. In the window that opens, type "whoami" and press Enter. Your username will appear on the next line.
Finding your username on Linux
On Linux, the quickest way is to open a terminal window. Right-click on your desktop and look for an option that says "Open Terminal Here," or search your applications menu for "Terminal" and click it. Once the terminal window is open, type "whoami" and press Enter. Your username will appear on the next line.
You can also find your username by opening your file manager and looking at the sidebar on the left. Your home folder usually shows your account name — it often appears as a folder with a house icon next to your username. The name displayed there is your username.
If you want to see all the usernames on your computer, type "cat /etc/passwd" in the terminal and press Enter. A list will appear showing every account on the system. Look for the usernames that have a shell listed at the end (usually "/bin/bash") — those are the accounts that can actually log in. Guest or system accounts often have "/nologin" at the end.
Understanding usernames versus account names
Your username is the name you type when you log in to your computer. It is different from your full name, your email address, or your computer's name. Your computer's name is what appears in network settings and when you share files — it is often something like "Jennifers-MacBook" or "DESKTOP-ABC123." Your username is what you use to access your account.
If your computer has multiple user accounts, each one has its own username. If you are the only person who uses the computer, you probably have one main account plus a guest account that you do not use. The username you log in with every day is the one you need to remember.
What to do if you cannot find your username
If you have forgotten your username or cannot see it anywhere, try restarting your computer and looking at the lock screen carefully. Sometimes the username is small or in a light color that is hard to read against the background. If you still cannot find it, try the Command Prompt or Terminal method described above — typing "whoami" will always show your current username.
If you are locked out of your account entirely and cannot log in, you may need to use a recovery account or contact your IT department if this is a work computer. On a personal computer, you can restart in Safe Mode or use a password reset disk if you created one when you first set up the account.
Why you might need your username
Tech support staff often ask for your username when you are troubleshooting a problem, because different accounts on the same computer can have different settings and installed software. If you are setting up a new device and want to transfer files from your old one, you may need your old username to locate your files. Some software also asks for your username during installation so it can set up your account correctly.
Knowing your username also helps you understand file permissions and folder access. When you see a folder that says "owned by [username]," that means only that account can modify it without a password.
Frequently Asked Questions
Is my username the same as my email address?
No. Your username is what you type to log in to your computer. Your email address is separate and is used for online accounts and communication. Some people choose a username that matches part of their email, but they are not the same thing.
Can I change my username after I create it?
Yes, but the process is different on each operating system and can be complicated because files and folders are tied to your old username. On Windows and Mac, you can change it through Settings or System Preferences, though you may need to move or update files afterward. On Linux, you can use the usermod command, but this also requires updating file ownership. It is usually easier to create a new account with the username you want.
What if I see multiple usernames when I log in?
Your computer may have more than one account. The one you use to log in every day is your primary username. Other accounts might belong to family members, or they might be system accounts that run in the background. You only need to know the username for the account you actually use.
Do I need my username to use my computer?
Yes, you type your username and password when you log in. However, you do not need to memorize it — it is displayed on the lock screen, so you can read it and type it in. You only need to remember it if you are setting up a new device or talking to tech support.
Is my username private information I should keep secret?
Your username alone is not sensitive — it is visible on your lock screen and in system settings. However, you should never share your password with anyone. If someone asks for your username and password together, that is a security risk. Your username by itself is fine to share with tech support or when setting up accounts.