Access Linux Files in Windows 11: Step-by-Step
In this article
Windows 11 can now read and copy files from a Linux filesystem without needing to boot into Linux or use a third-party tool. This guide shows you how to access your Linux files through the Windows Subsystem for Linux (WSL), which is built into Windows 11. You'll need WSL installed and a Linux distribution (like Ubuntu) set up, but if you haven't done that yet, we'll cover the quick setup first.
What You'll Need
- Windows 11 (any edition, 64-bit)
- WSL (Windows Subsystem for Linux) enabled – we'll show you how to check and enable it
- A Linux distribution installed from the Microsoft Store (e.g., Ubuntu, Debian, Kali)
- Administrator rights on your PC to enable WSL if it's not already on
Step-by-Step
- Check if WSL is installed. Open PowerShell or Command Prompt (right-click Start and choose “Windows Terminal” or “Command Prompt”). Type
wsl --statusand press Enter. If you see “Default Version: 2” or similar, WSL is ready. If you get an error like “WSL is not installed”, proceed to step 2. - Install WSL (if needed). In the same terminal, run
wsl --install. This command enables the required Windows features and installs the latest WSL version. You'll need to restart your PC when prompted. After restarting, the terminal will open automatically and ask you to create a Linux username and password. - Install a Linux distribution (if you don't have one). Open the Microsoft Store, search for “Ubuntu” (or your preferred distro), and click “Get” or “Install”. Launch it from the Start menu, wait for it to finish installing, and create a username and password when asked.
- Open your Linux files in File Explorer. The easiest way is to open a terminal (Windows Terminal or PowerShell) and type
explorer.exe .(with a space and a dot). This opens the current Linux directory in Windows File Explorer. You can also navigate to the Linux folder manually: in File Explorer, click the address bar and type\\wsl$and press Enter. You'll see a list of your installed distributions; double-click one to browse its filesystem. - Navigate to your home folder. Inside your distribution's folder, you'll see a directory called
home, and inside that, your username. That's where your personal files live (e.g.,\\wsl$\Ubuntu\home\yourname). You can copy files from here to any Windows folder by dragging and dropping or using copy/paste. - Access files from the command line. If you prefer the terminal, you can also use Windows commands like
copyorxcopywith the WSL path. For example, from PowerShell,copy \\wsl$\Ubuntu\home\yourname\file.txt C:\Users\YourName\Documentscopies a file.
Common Mistakes
- Editing Linux files with Windows apps. Windows tools like Notepad or Visual Studio Code can open Linux files, but they may change line endings or permissions. It's safer to edit with a Linux editor (like nano or vim) or use VS Code with the Remote-WSL extension.
- Using the wrong path. The Linux filesystem is not a drive letter like C: or D:. It's accessed via
\\wsl$. Don't try to find it under “This PC” – it won't appear there unless you map it manually. - Running Windows apps on Linux files directly. While you can open a file from the WSL folder with a Windows program, some programs may not handle Linux file permissions well. If you get permission errors, copy the file to a Windows folder first.
- Forgetting to shut down WSL. If you're done, you can close the terminal, but WSL keeps running in the background. To free up resources, use
wsl --shutdownin PowerShell.
Tips
- Pin the WSL folder to Quick Access. Once you're in the
\\wsl$folder, right-click on your distribution's folder and choose “Pin to Quick Access” for one-click access. - Use the terminal for large transfers. For moving many files, using
cpormvinside the Linux terminal is faster and more reliable than dragging in File Explorer. - Access Windows files from Linux. The reverse is also easy: in your Linux terminal, your Windows drives are mounted under
/mnt/c(C: drive),/mnt/d(D: drive), etc. - Set WSL 2 as default. WSL 2 gives better performance and full system call compatibility. Check with
wsl --set-default-version 2.
Troubleshooting
- “WSL is not installed” or “wsl: command not found”. Run
wsl --installas administrator. If it fails, make sure virtualization is enabled in your BIOS (look for Intel VT-x or AMD-V). After enabling, restart and try again. - You see the distribution but no files. Make sure you've launched the distribution at least once to complete the setup. If it's still empty, check that you're looking in the right place – your personal files are under
/home/yourname, not the root/. - Permission denied when copying files. This often happens when a file is owned by a different user or has restrictive permissions. In the Linux terminal, run
chmod 755 filenameorchown yourname filenameto fix it. - File Explorer doesn't show the WSL folder. Try typing
\\wsl$in the address bar. If that fails, restart Windows Explorer (right-click the Start button → Task Manager → find Windows Explorer → Restart). - WSL stopped working after a Windows update. Run
wsl --updatein an elevated PowerShell to get the latest version.
Frequently Asked Questions
Can I edit my Linux files with Windows Notepad?
Yes, but be careful: Notepad may save with Windows line endings, which can cause issues in Linux. Use Notepad++ or VS Code with the WSL extension for safer editing.
Where are my Linux files stored on Windows?
They're in a hidden virtual disk file (ext4.vhdx) inside the WSL installation folder. You should never touch that file directly – always access your files via \\wsl$.
Can I move files from Linux to Windows without copying?
No, you need to copy or move them. The WSL folder is a live view of the Linux filesystem, but Windows programs can't directly modify Linux files without permission issues.
Do I need to install anything extra to access Linux files?
No, if you have WSL and a distribution installed, the \\wsl$ access is built in. No third-party tools needed.
Can I access files from a Linux dual-boot partition (not WSL)?
No, this method only works for WSL distributions. For a separate Linux installation, you'd need a third-party tool like ext2fsd or a Linux live USB to copy files.
Why can't I see my Linux files in “This PC”?
Because WSL folders are not mounted as drives. They're accessible only through the \\wsl$ network path. You can map a drive letter to it if you want, but it's not necessary.