The fastest way to find your username

Your computer username is the name that appears when you log in or when you open a terminal window. On Windows, the quickest method is to open File Explorer, right-click "This PC," select Properties, and look for "Full computer name" — your username is the part before the backslash. On Mac, click the Apple menu, select System Settings, then Users & Groups, and your account name appears in the list on the left. On Linux, open a terminal and type whoami at the prompt, then press Enter.

If you need to see it right now without opening any menus, look at the bottom left corner of your Windows lock screen — your username displays there. On Mac, the username also appears in the top-right corner of the menu bar next to the Apple logo when you click the user icon.

Key Takeaways

  • Your username appears on the Windows lock screen in the bottom left corner, so you can see it without logging in.
  • On Windows, right-click "This PC" in File Explorer and select Properties to find your username in the full computer name.
  • Mac users can find their username in System Settings under Users & Groups, or by looking at the top-right menu bar.
  • Linux users can type whoami in a terminal to display their username when ready.
  • Your username is different from your computer's name — the username is your personal account, while the computer name identifies the device itself.

Finding your username on Windows

Windows stores your username in several places, and the method you choose depends on whether you are already logged in. If you are at the login screen, your username appears in the bottom left corner of the screen. If you have already logged in, the fastest route is the File Explorer method: open File Explorer from your taskbar, right-click "This PC" on the left side, select Properties, and scroll down to find "Full computer name." The text before the backslash is your username — for example, if the full name reads "DESKTOP-ABC123\JohnSmith," your username is JohnSmith.

A second method works from anywhere on your computer. Press the Windows key and R together to open the Run dialog, type cmd, and press Enter to open Command Prompt. Type echo %username% and press Enter. Your username appears on the next line. This method works even if you cannot access File Explorer for some reason.

If you use Settings instead of File Explorer, click the Start menu, select Settings, then go to Accounts and look for "Your info." Your username and account type display at the top of that page.

Finding your username on Mac

Mac stores your username in the System Settings process, which is the easiest place to check. Click the Apple menu in the top-left corner, select System Settings, then click Users & Groups on the left sidebar. Your account name appears in the list — it is the one with a house icon next to it. The name shown there is your username.

If you prefer to see it without opening Settings, click the Apple menu and look at the top-right corner of the menu that drops down. Your username appears next to a small user icon. You can also open Terminal (search for it in Spotlight by pressing Command and Space together, then type Terminal) and type whoami at the prompt to see your username printed on the screen.

Finding your username on Linux

Linux makes this the simplest of all three systems. Open a terminal window — the method varies by distribution, but usually you can right-click the desktop and select "Open Terminal" or search for Terminal in your applications menu. At the command prompt, type whoami and press Enter. Your username prints on the next line when ready.

If you want to see additional details about your account, type id at the same prompt and press Enter. This shows your username, user ID number, group ID, and other account information in one line. Both commands work the same way on any Linux distribution.

Understanding the difference between username and computer name

Many people confuse their username with their computer's name, but they are two separate things. Your username is the name of your personal account on the computer — it is what you type when you log in. Your computer name (also called hostname on Mac and Linux) is the name of the device itself, which appears on a network when other computers try to connect to it.

When you see something like "DESKTOP-ABC123\JohnSmith" on Windows, the part before the backslash (DESKTOP-ABC123) is your computer name, and the part after (JohnSmith) is your username. On Mac, your computer name appears in System Settings under General, while your username is in Users & Groups. Knowing which is which matters when you are troubleshooting network problems or setting up shared folders.

Why you might need to know your username

Your username becomes important in several situations. When you set up remote access to your computer, you need to provide your username so the other person can log in. If you are installing software that requires administrator permission, the system asks for your username and password. When you share files on a network, other users need your username to find your shared folders. Tech support staff also ask for your username when troubleshooting account-related problems.

If you have multiple user accounts on the same computer, knowing which username is yours prevents confusion when switching between accounts. This is especially common in households or offices where several people share the same device.

What to do if you cannot remember your username

If you are locked out of your account and cannot see your username anywhere, Windows and Mac both offer recovery options. On Windows, restart your computer and look at the login screen — all user accounts on that computer appear there with their usernames. On Mac, restart and hold Command-S to enter Single User Mode, then type ls /Users to see a list of all usernames on the system.

If you are the computer's administrator and have set up a recovery email or phone number, you can use those to reset your password and regain access. Contact your system administrator or the person who set up the computer if you need further help — they can tell you your username or help you create a new account.

Frequently Asked Questions

Is my username the same as my email address?

Not necessarily. Your username is the account name on your computer, while your email address is separate. Some people use an email address as their username, but most computers assign a shorter name like "JohnSmith" or "jsmith." Check your System Settings or the login screen to see what your actual username is.

Can I change my username after I create it?

On Windows and Mac, you can change your username, but the process is different from straightforward renaming your account. On Windows, go to Settings > Accounts > Your info and click "Rename your account." On Mac, go to System Settings > Users & Groups, unlock the settings, right-click your account, and select "Advanced Options." Changing your username may affect file permissions and shortcuts, so proceed carefully.

What if I see multiple usernames on my computer?

Multiple usernames mean multiple user accounts exist on that computer. Each person who logs in has their own account with their own username. You can see all of them on the login screen or in Users & Groups (Mac) or Settings > Accounts (Windows). Only your personal username is the one you use to log in to your own account.

Do I need my username to log in, or can I use my email instead?

On Windows 10 and later, you can log in with either your username or your Microsoft email address if your account is linked to one. On Mac, you log in with your username. On Linux, you always use your username. Check your login screen to see which option your computer accepts.