Where to find your username on Windows

Your Windows username appears in the bottom left corner of your lock screen, right above the password field. When you boot your computer or wake it from sleep, look at that screen before you type anything — your username is printed there in plain text.

If you are already logged in, the fastest way is to open File Explorer (the folder icon on your taskbar), then look at the left sidebar. Click "This PC" and your username appears in the address bar at the top, formatted as C:\Users\YourUsername. You can also right-click the Start button, select "System", and scroll down to find "User name" listed under "Device specifications".

For a command-line view, press Windows key + R, type cmd, and press Enter. In the black window that opens, type whoami and press Enter. Your full username prints on the next line.

Where to find your username on Mac

On a Mac, click the Apple menu in the top left corner, then select "System Settings" (or "System Preferences" on older versions). Click "General" in the sidebar, then look for "Computer Name" and "Local Hostname" — but your actual login username is not there. Instead, click "General" again and look for your account name, or go to "Users & Groups" to see all accounts on the machine.

The fastest method is to open Terminal (search for it using Spotlight by pressing Command + Space, type "Terminal", and press Enter). Type whoami and press Enter. Your username prints when ready below. You can also type id -un for the same result.

Your username also appears in the top right corner of the menu bar when you click the user icon, and in Finder's sidebar under "Favorites" — it shows as a house icon with your name next to it.

Where to find your username on Linux

Open a terminal window (the method varies by desktop environment, but usually involves right-clicking the desktop or searching your applications menu). Type whoami and press Enter. Your username prints on the next line.

You can also type id and press Enter to see your username, user ID number, group ID, and group memberships all at once. Another option is to type echo $USER and press Enter, which prints only your username.

If you need to see all user accounts on the Linux system, type cat /etc/passwd and press Enter. This shows every account, though the output includes technical information you may not need.

Key Takeaways

  • On Windows, your username appears on the lock screen before you log in, or in File Explorer's address bar after you log in.
  • On Mac, open Terminal and type whoami to see your login username when ready.
  • On Linux, open a terminal and type whoami, id, or echo $USER to display your username.
  • The whoami command works on all three operating systems and is the fastest method if you are comfortable opening a terminal or command prompt.
  • Your username is different from your computer's name — the computer name is what appears to other devices on a network.

Why you might need to know your username

Your username is required when you set up software licenses, connect to a network drive, troubleshoot permission errors, or contact technical support. Some programs ask for your username to store settings specific to your account. If you share a computer with other people, knowing your own username helps you understand which files and folders belong to your account and which belong to others.

System administrators and IT support staff often ask for your username to diagnose problems or grant you access to shared resources. Having it ready saves time during a support call.

The difference between username and password

Your username is public information on your own computer — anyone sitting at your desk can see it on the lock screen. Your password is secret and should never be shared. The username identifies which account you are using; the password proves you own that account. You can change your password without changing your username, and vice versa.

Some systems let you change your username, but this is more complicated because files and folders are tied to the old username. On Windows and Mac, changing your username usually requires creating a new account and moving your files over. On Linux, you can rename a user account with the usermod command, but this also requires terminal access and administrator permissions.

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

On Windows, you can use another administrator account to reset the password for your account. If you do not have another account, Windows offers password recovery options on the lock screen — click "I forgot my password" and follow the prompts, which may involve answering security questions or using a recovery email address.

On Mac, restart your computer and hold Command + S to enter Single-User Mode, or use Recovery Mode (Command + R during startup) to reset your password through the Utilities menu. On Linux, restart in single-user or recovery mode, which usually requires physical access to the machine and knowledge of the root password or GRUB bootloader.

Frequently Asked Questions

Is my username the same as my email address?

Not necessarily. Your username is the account name on your computer. Your email address is separate and may or may not match your username. Some systems use your email as your username, but most do not. Check your lock screen or use the methods above to see your actual username.

Can I have multiple usernames on one computer?

Yes. Windows, Mac, and Linux all support multiple user accounts on a single machine. Each account has its own username, password, files, and settings. You switch between accounts by logging out and logging in with a different username, or by using the user switcher in your system menu.

What if the terminal command shows a username I do not recognize?

This usually means your account was created with a technical name that differs from your display name. For example, your display name might be "James Rodriguez" but your username might be "jrodriguez" or "james.r". Both are correct — the display name is what appears in menus, while the username is what the system uses internally.

Does my username appear in files I create?

Yes, in most cases. When you save a file, the operating system records your username as the file owner. You can see this in file properties or by using terminal commands like ls -l on Mac or Linux. This is how the system knows which files belong to which account.