The fastest way depends on your operating system
Changing your username takes a different path on Windows, Mac, and Linux, but all three let you do it without reinstalling anything. On Windows 10 and 11, you go through Settings. On Mac, you use System Settings. On Linux, the method varies by distribution, but most use a terminal command or a graphical settings panel. The process takes 5 to 15 minutes on any system, though Windows may ask you to restart.
Your username is the name that appears on your login screen and in file paths. Changing it does not affect your files, passwords, or installed programs — they all stay where they are. The system straightforward updates the folder name and display name associated with your account.
Key Takeaways
- Windows users should go to Settings > Accounts > Your info and click "Rename your account" to change the display name without administrator tools.
- Mac users can change their account name in System Settings > General > Users & Groups by unlocking the panel and right-clicking their account.
- Linux users typically use the terminal command usermod -l newusername oldusername or a graphical tool depending on their distribution.
- Changing your username does not move or delete your files, but some programs may need to be restarted to recognize the new name.
- On Windows, changing the folder name requires administrator access and may need a restart; the display name change is simpler and happens when ready.
How to change your username on Windows 10 and 11
The simplest change on Windows is the display name — the name shown on the login screen and in the Start menu. Open Settings, go to Accounts, then select Your info. Click "Rename your account" and type the new name. Click Next, then Finish. This change takes effect when ready and does not require a restart.
If you want to change the actual folder name (the one that appears in file paths like C:\Users\oldname), you need administrator access. Right-click the folder in File Explorer under C:\Users\, select Rename, and type the new name. Windows may ask you to restart. After restart, log in with your password — the system will update the path automatically. If Windows blocks the rename, restart in Safe Mode, make the change, then restart normally.
Some older programs may still look for files in the old folder path. If a program stops finding your documents after the rename, reinstalling it usually fixes the issue. Most modern programs adapt to the folder name change without problems.
How to change your username on Mac
Open System Settings and go to General, then Users & Groups. Click the lock icon in the bottom left and enter your password to unlock the panel. Right-click your account name in the list on the left and select "Advanced Options." You will see two fields: Full Name (the display name) and Account name (the folder name). Change either or both, then click OK.
Changing the Full Name takes effect when ready. Changing the Account name may require a restart, and the system will update your home folder path automatically. After the change, log out and back in to confirm the new name appears on the login screen.
Like Windows, some older Mac programs may reference the old folder path. Restarting the program usually resolves any issues. Most modern Mac software adapts without problems.
How to change your username on Linux
The method depends on your distribution. Ubuntu, Fedora, Debian, and most others use the same terminal command. Open a terminal and type sudo usermod -l newusername oldusername, then enter your password. This changes the login name. To change the display name (the full name shown in system menus), type sudo usermod -c "New Full Name" username.
Some distributions like Ubuntu also offer a graphical tool. Open Settings, go to Users, click the lock icon to unlock, select your account, and look for an option to change your name or username. The exact location varies by desktop environment (GNOME, KDE, Cinnamon, etc.), so check your distribution's documentation if you cannot find it.
After changing your username via terminal, you may need to restart your session or log out and back in. Check that your home folder path has updated by opening a file manager and navigating to your home directory. If any programs fail to start, restart them — they will adapt to the new username.
What happens to your files and programs
Your files do not move or disappear when you change your username. The system updates the folder path and ownership automatically. On Windows and Mac, the home folder is renamed to match the new username. On Linux, the home folder path changes as well. All your documents, downloads, and desktop files stay exactly where they are.
Installed programs continue to work. Some older software may cache the old username in its settings, which can cause it to look in the wrong folder for configuration files. Restarting the program usually fixes this. If a program still cannot find its files, uninstalling and reinstalling it will update its internal paths.
When you cannot change your username
On Windows, you cannot rename the Administrator account or System account — these are reserved by the operating system. If you need a different name for daily use, create a new standard account instead and delete the old one after moving your files.
On Mac, you cannot change the username of the account you are currently logged into. Log out, log in as a different administrator account, then change the first account's name from there.
On Linux, you cannot change the username of the account you are currently using. Switch to a different user or use sudo to run the usermod command as root. If you are the only user, you may need to boot into single-user mode or use a live USB to make the change.
Troubleshooting after the change
If a program stops working after you change your username, try restarting it first. If that does not work, uninstall and reinstall the program — this updates its internal file paths. For programs that store settings in hidden folders (common on Mac and Linux), you may need to move those folders manually to the new username's home directory.
On Windows, if you renamed the folder and now cannot log in, restart in Safe Mode, rename the folder back to the original name, then restart normally. You can try the folder rename again after confirming everything else works.
If you changed your username on Linux and cannot access your home folder, check that the folder ownership is correct by running ls -l /home/ in a terminal. The folder should be owned by your username. If it shows the old name, use sudo chown -R newusername:newusername /home/newusername to fix ownership.
Frequently Asked Questions
Will changing my username affect my password?
No. Your password remains the same and works exactly as before. The username and password are separate — changing one does not touch the other. You log in with the same password you used before.
Can I change my username without restarting?
On Windows and Mac, changing the display name takes effect when ready without a restart. Changing the actual folder name may require a restart. On Linux, you typically do not need a restart, but logging out and back in is recommended to may support all programs recognize the change.
What if I share my computer with other users?
Each user account is separate. Changing one person's username does not affect anyone else's account, files, or login. Other users can continue using their own accounts without any changes.
Do I need to update my email or Microsoft account after changing my username?
No. Your email address and online account remain unchanged. The username change only affects your local computer login and folder names. You do not need to update anything in your email, Microsoft account, Apple ID, or Google account.
What if a program says it cannot find my files after the username change?
Restart the program first — most will adapt automatically. If it still cannot find files, uninstall and reinstall the program. This updates its internal paths to match your new username. For programs that store settings in hidden folders, you may need to move those folders manually to your new home directory.