C:\Users\YourWindowsUsername\.bashrc
explorer.exe . Then enable in Windows File Explorer. You’ll see .bashrc sitting right there—but it’s actually a Linux file, not a native Windows text file.
When you launch WSL, you land in your Linux home directory:
For decades, the humble .bashrc file was the exclusive domain of Linux and macOS users—a hidden fortress of aliases, custom prompts, and PATH exports. But with Windows 11 embracing the Linux ecosystem like never before, a new question haunts developers: Where does my .bashrc actually live?
/home/your_linux_username/ To find or edit .bashrc from Windows File Explorer, type this into the WSL terminal: