The quickest way to find your username

Your computer username is the name that appears when you log in. On Windows, the fastest way to find it is to open the Start menu, type "cmd", and select Command Prompt. Type whoami and press Enter — your username will appear on the next line. On a Mac, open System Preferences, click Users & Groups, and look at the account name under the lock icon. On Linux, open a terminal and type whoami to see your username when ready.

If you do not want to open a command line, Windows also shows your username in Settings. Go to Settings > Accounts > Your info, and your account name appears at the top of the page. This is the same name you type when you log in each time.

Key Takeaways

  • On Windows, type whoami in Command Prompt to see your username in one line.
  • On Mac, your username is listed in System Preferences under Users & Groups as the account name.
  • On Linux, open a terminal and type whoami to display your username when ready.
  • Windows Settings also shows your username under Accounts > Your info without needing a command line.
  • Your username is the name you enter when you log in, not your full name or display name.

Finding your username in Windows Settings

If you prefer not to use Command Prompt, Windows Settings shows your username in a graphical menu. Click the Start button, then select Settings (the gear icon). From there, click Accounts on the left side, then select Your info at the top. Your account name appears in large text at the top of the page — this is your username.

This method works the same way on Windows 10 and Windows 11. The account name shown here is what you use to log in, even if you have set a different display name or profile picture. If you see multiple accounts on your computer, make sure you are looking at the one you use to log in.

Checking your username on Mac

On a Mac, your username is stored in the Users & Groups settings. Click the Apple menu in the top-left corner, select System Preferences (or System Settings on newer versions), then click Users & Groups. You will see a list of user accounts on the left side. Click the account you use, and look at the text below the account picture — this is your username. It is usually shorter than your full name and contains no spaces.

If the Users & Groups pane is locked (you will see a lock icon at the bottom), click it and enter your password to unlock it. Your username will then be visible. On very new Macs running macOS Ventura or later, this setting moved to System Settings > General > Users & Groups, but the process is the same.

Finding your username in Linux

Linux systems store your username in the terminal, and the quickest way to see it is to open a terminal window and type whoami. Press Enter, and your username appears on the next line. This works on Ubuntu, Fedora, Debian, and most other Linux distributions.

If you want to see all user accounts on the system, type cat /etc/passwd in the terminal. This shows a longer list, but your username will be the first part of each line before the colon. For most personal computers, you only have one or two user accounts, so the whoami command is usually all you need.

Why your username matters

Your username is different from your full name or display name. It is the short identifier your computer uses to organize your files, settings, and permissions. When you log in, you type your username (or sometimes your email address, depending on your system). Knowing your username is useful when you need to troubleshoot computer problems, set up network access, or give technical support to someone helping you.

Your username also appears in the file path where your personal files are stored. On Windows, this is usually C:\Users\[your username]. On Mac, it is /Users/[your username]. On Linux, it is /home/[your username]. If you ever need to find where your documents folder is located, your username is part of that path.

What to do if you forgot your password but remember your username

If you know your username but cannot log in because you forgot your password, Windows, Mac, and Linux all have password recovery options. On Windows, click "I forgot my password" on the login screen and follow the prompts — you may be asked security questions or sent a reset link to your email. On Mac, restart your computer and hold Command + Q at the login screen to access recovery options. On Linux, you may need to boot into recovery mode or use a live USB to reset your password.

If you are locked out of your account entirely, contact your system administrator or the person who set up your computer. They may be able to reset your password or help you regain access. Do not try to bypass security features on a work or school computer without permission.

Frequently Asked Questions

Is my username the same as my email address?

Not always. Your username is the short name you log in with, while your email address is separate. Some systems let you log in with either one, but they are stored differently. Check your login screen to see whether you type a username or an email address.

Can I change my username after I create it?

On Windows and Mac, changing your username is possible but complicated — it requires renaming your user account folder and updating system files. On Linux, you can change it with the usermod command in the terminal. For most people, it is easier to create a new account with the username you want and transfer your files over.

What if I see a different name when I log in than what appears in Settings?

You may have set a display name that is different from your actual username. Your display name is what shows on the login screen and in menus, but your actual username is what appears in Settings or when you type whoami. Both are correct — they just serve different purposes.

Do I need my username to use my computer?

You need it to log in if your computer has password protection. You also need it if you are setting up network access, connecting to a shared drive, or troubleshooting with technical support. For everyday use on your own computer, you may not think about your username, but it is always there organizing your files and settings.