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.
~/ within your WSL distribution (e.g., Ubuntu, Debian). bashrc file location windows 11
| Tool | File System | .bashrc lives in | |------|-------------|--------------------| | | Virtual Linux | \\wsl.localhost\Ubuntu\home\username\ | | Git Bash | Native Windows | C:\Users\username\ | | MSYS2 | Hybrid | C:\msys64\home\username\ | explorer
These environments treat your Windows user folder as their /home directory, so you’ll find .bashrc side-by-side with your Windows documents. The confusion arises because Windows 11 runs Bash in two fundamentally different ways: bashrc file location windows 11
C:\msys64\home\YourWindowsUsername\.bashrc (for MSYS2)