Bashrc File Location Windows 11 (FHD • 360p)
When you launch WSL, you land in your Linux home directory:
| 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\ | bashrc file location windows 11
Yes, it’s the same folder as your Documents, Downloads, and Desktop. Git Bash looks for .bashrc directly in your Windows user profile. When you launch WSL, you land in your
If you’ve installed WSL (Windows Subsystem for Linux), Git Bash, or MSYS2, you technically have a Bash shell. But placing a .bashrc file on your Windows desktop won’t work. Here’s where to find—and create—your configuration file depending on how you’re running Bash on Windows 11. If you’re using Windows 11’s flagship Linux integration (WSL2), your .bashrc does not live in C:\Users\YourName . It lives inside the Linux distribution’s virtual file system. But placing a
/home/your_linux_username/ To find or edit .bashrc from Windows File Explorer, type this into the WSL terminal:
C:\msys64\home\YourWindowsUsername\.bashrc (for MSYS2)
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:
No comments to display
No comments to display