Where to find your username on Windows
Your Windows username appears in the bottom left corner of your lock screen, just above the password field. When you turn on your computer or wake it from sleep, look at that screen — your username is printed there in plain text. This is the fastest way to check without logging in.
If you are already logged in, open the Start menu and look at the top left corner. You will see your username next to a small profile picture. You can also right-click the Start button, select "System", and look for "User name" under the "Device specifications" section. The name listed there is exactly what you type when you log in.
Another method: press the Windows key and R together to open the Run dialog, type whoami, and press Enter. A command window will pop up and display your username in the format COMPUTERNAME\username. The part after the backslash is your actual username.
Finding your username on Mac
On a Mac, click the Apple menu in the top left corner and select "System Settings" (or "System Preferences" on older versions). Click "General" in the sidebar, then look for "Computer Name" and "Local Hostname" — but these are not your username. Instead, look at the top of the System Settings window where you see your account name and profile picture. That is your username.
The simplest method on Mac is to open the Terminal process (found in Applications > Utilities). Type whoami and press Enter. Your username will appear on the next line. You can also type id -un for the same result.
If you have multiple user accounts on the Mac, you can see all of them by going to System Settings > General > Users & Groups (or System Preferences > Users & Groups on older versions). Your current account is marked with "Current User" underneath the name.
Checking your username on Linux
Open a terminal window — the method varies by Linux distribution, but usually you can right-click the desktop and select "Open Terminal" or search for "Terminal" in your applications menu. Type whoami and press Enter. Your username will display on the next line.
You can also type echo $USER or echo $LOGNAME for the same information. If you want to see all user accounts on the system, type cat /etc/passwd and look at the first column of each line — those are the usernames. Your current username will be highlighted or marked differently depending on your terminal theme.
Key Takeaways
- On Windows, your username appears on the lock screen above the password field, or in the Start menu next to your profile picture.
- On Mac, your username is shown in System Settings next to your profile picture, or you can type whoami in Terminal to see it when ready.
- On Linux, open a terminal and type whoami to display your username when ready.
- The whoami command works on all three operating systems and is the fastest way to confirm your username if you are unsure.
- Your username is different from your computer name — the username is what you type to log in, while the computer name is what appears on your network.
Why you might need to know your username
Your username is required when you set up email clients, connect to shared network drives, troubleshoot permission errors, or contact technical support. Many programs ask for your username during installation or configuration. If you forget it, you cannot log into your computer or access files that are restricted to your account.
Some software also uses your username to personalize settings or create backups tied to your account. Network administrators need your username to grant you access to shared resources. Knowing where to find it quickly saves time when you are setting up a new device or troubleshooting a problem.
What to do if you cannot log in
If you cannot remember your password but you know your username, you can use the password reset options on your lock screen. On Windows, click "I forgot my password" and answer your security questions. On Mac, restart your computer and hold Command + Q at the login screen to access recovery options.
If you cannot remember your username either, restart your computer and look at the lock screen carefully — your username is displayed there. If you have multiple accounts and cannot remember which one is yours, try each username you see. If none of them work, you may need to restart in safe mode or use a recovery disk to regain access.
Username versus password and account name
Your username is the name you type to log in — it is permanent and tied to your account. Your password is the secret code you enter after your username. Your account name (sometimes called your display name) is what appears in menus and on your profile picture, and it can be different from your username. For example, your username might be "jsmith" but your account name might be "John Smith".
When you are setting up software or connecting to a network, always use your username, not your account name. The username is what the system recognizes. If a program asks for your "login" or "user ID", it is asking for your username.
Frequently Asked Questions
Is my username the same as my email address?
Not always. Your username is what you type to log into your computer. Your email address is a separate identifier used for email and some online services. Some systems use your email as your username, but most do not. Check your lock screen or System Settings to see your actual computer username.
Can I change my username?
On Windows and Mac, you can change your account name (the display name), but changing your actual username is more complex and requires administrative access. On Windows, you would need to create a new account with the new username and transfer files over. On Mac, the process is similar. Linux allows username changes through terminal commands, but it is not recommended for beginners.
What if I see a username I do not recognize?
If you see an unfamiliar username on your lock screen, you may have multiple user accounts on your computer. Each account has its own username. If you are certain you did not create it, restart your computer and check again — sometimes system accounts appear in the user list but are not meant for regular login.
Do I need my username to install software?
Most software installation does not require your username. However, some programs ask for it during setup, and your operating system may ask for your password to confirm you have permission to install. If a program asks for your username, type exactly what appears on your lock screen or in System Settings.
Will my username work on other computers?
No. Your username is specific to your computer. If you log into a different computer, it will have its own set of usernames. However, if your computer is connected to a network or domain, your network username may work on other computers on that network — ask your network administrator if you are unsure.