Your username is the name your computer uses to identify you

Your computer username is the account name you use to log in. It appears in system settings, file paths, and network connections. Finding it takes less than a minute on any operating system, and you may need it to troubleshoot network problems, set up shared folders, or work with IT support.

The steps differ slightly depending on whether you use Windows, macOS, or Linux. Each system stores this information in a different place, but all three show it to you without requiring administrator access.

Key Takeaways

  • On Windows, open Settings, go to Accounts, and your username appears under "Your info" at the top of the page.
  • On macOS, open System Settings, click General, then About, and your computer name appears — your username is often the same but you can verify it in Users & Groups.
  • On Linux, open a terminal and type whoami to see your username when ready, or type id for more detail.
  • If you see a display name instead of a username, check your account settings — the username is usually shorter and without spaces.

Finding your username in Windows 10 and 11

Open Settings by pressing the Windows key and typing "Settings," then press Enter. Click Accounts in the left sidebar. Your username appears at the top under "Your info," displayed as a blue link or text field.

If you see a display name (like "Sarah's Computer") instead of a username, scroll down to find Email address or Phone number. Your username is usually the part before the @ symbol in your email address, or a separate short name without spaces. You can also right-click the Start button, select System, and look for "Computer name" — though this is your device name, not your user account name.

For a second confirmation, press Windows key + R, type cmd, and press Enter. In the Command Prompt window, type echo %username% and press Enter. Your username appears on the next line.

Finding your username in macOS

Click the Apple menu in the top-left corner and select System Settings (or System Preferences on older versions). Click General, then About. The "Computer Name" field shows your device name, which is often the same as your username but not always.

To see your actual username, go back to System Settings and click General, then Users & Groups (or Accounts on newer versions). Your account appears in the left sidebar with your username displayed underneath your display name. If you see a lock icon, you may need to click it and enter your password to view details.

You can also open Terminal (search for it in Spotlight by pressing Command + Space) and type whoami, then press Enter. Your username appears on the next line.

Finding your username in Linux

Open a terminal window. Type whoami and press Enter. Your username appears when ready on the next line. This is the fastest method on any Linux distribution.

For more information about your account, type id and press Enter. This shows your username, user ID number, group ID, and group memberships. If you want to see all user accounts on the system, type cat /etc/passwd and press Enter — usernames appear before the first colon on each line.

What to do if you see a display name instead of a username

Many operating systems let you set a display name (like "Sarah" or "Sarah's Computer") that is different from your actual username. Display names can contain spaces and special characters, while usernames are usually shorter and simpler.

If you see only a display name in your account settings, look for a field labeled "Username," "Account name," "User account," or "Login name." On Windows, this is under Accounts > Your info. On macOS, it appears in Users & Groups below your display name. On Linux, the whoami command always shows your true username, not a display name.

Why you might need your username

Your username is required when you set up network file sharing, connect to a company VPN, troubleshoot with IT support, or grant permissions to other users on your computer. Some software also asks for it during installation or configuration.

Your username is not the same as your password, and you do not need to keep it secret. It is public information that appears in file paths and network settings. Your password is what you keep private.

Frequently Asked Questions

Is my username the same as my email address?

Not always. Your email address and username may be related — for example, if your email is sarah.jones@company.com, your username might be sarah.jones — but they are stored separately. Check your account settings to see both.

Can I change my username?

Yes, but the process varies by operating system and may require administrator access. On Windows and macOS, you can create a new account with a different username and transfer your files. On Linux, you can rename your account using the usermod command, though this requires root access. Changing your username may affect file permissions and network access, so document the old name before you change it.

What if I forgot my password but remember my username?

Your username alone cannot reset your password. You will need to use your recovery email, phone number, or security questions associated with your account. On Windows, you can use another administrator account to reset the password. On macOS and Linux, you may need to boot into recovery mode or use a password reset disk.

Does my username appear in my file paths?

Yes. On Windows, files are usually stored in C:\Users\[your username]\Documents. On macOS, they are in /Users/[your username]/Documents. On Linux, they are in /home/[your username]/. This is why IT support sometimes asks for your username — they need to know which folder to look in.

Is my username visible to other people on my network?

Yes, if you share files or printers on a local network, your username may be visible to others. This is normal and expected. Your username is not sensitive information — your password is what you keep private.