Getting started with WSL on Windows 11 is a fantastic way to bring the power of Linux right to your desktop without all the usual fuss. Essentially, you will enable a special feature in Windows, grab your preferred Linux operating system from the Microsoft Store, and then set up a user account. Once those pieces are in place, you can dive straight into running Linux commands, installing tools, and even launching graphical applications, all seamlessly integrated within your familiar Windows environment. It truly makes your Windows machine a development powerhouse, blending the best of both worlds.
Tutorial – How To Use WSL On Windows 11
This guide will walk you through the essential steps to set up and start using the Windows Subsystem for Linux, transforming your Windows 11 machine into a versatile and powerful development environment. Think of it as unlocking a whole new set of capabilities for your computer.
Step 1: Enable WSL Feature.
You need to turn on the Windows Subsystem for Linux feature in your Windows settings.
This is the very first hurdle, a simple flip of a switch in your system. To do this, you will search for “Turn Windows features on or off” in your Windows search bar and open it up. Look for “Windows Subsystem for Linux” in the list, then simply tick that box. This action tells Windows that you are ready to welcome Linux into your system. After you click “OK,” Windows might ask you to restart your computer, which is a common and necessary step to fully apply the changes.
Step 2: Install a Linux Distribution.
After enabling WSL, you will install a Linux operating system, like Ubuntu, from the Microsoft Store.
Now that the secret door is open, it is time to pick your adventure. Head over to the Microsoft Store, just like you would to download any other app. In the search bar, type “Linux” or the name of a specific distribution you are interested in, such as “Ubuntu.” Ubuntu is a fantastic choice for beginners, sort of like the comfortable, well-known path, but you can also explore others like Debian or Kali Linux if you have specific needs. Click “Get” or “Install” on your chosen distro, and let Windows handle the download and installation process.
Step 3: Set Up Your Linux User Account.
Once installed, you will launch the Linux distribution and create a username and password.
Launching your newly installed Linux distro for the first time is a pretty exciting moment. You can usually find it in your Start menu, just like any other application. When you click it, a command-line window will pop open, and it will immediately prompt you to create a new user account and set a password. This is your personal login for your Linux environment, completely separate from your Windows account. Make sure to choose something memorable and secure, as you will use these credentials frequently for installing software and running privileged commands within Linux.
Step 4: Update Your Linux System.
It is good practice to immediately update your Linux distribution’s packages to their latest versions.
Just like Windows, your new Linux system needs updates to stay secure, stable, and run smoothly with the latest features. After setting up your user account, the very first thing you should do is open your Linux terminal and type sudo apt update && sudo apt upgrade. This command, which you will type after your user account is set up, first fetches the latest information about available packages and then proceeds to install any updates. Think of it as giving your new Linux system a fresh coat of paint and some brand-new tools right off the bat, ensuring everything is up to date.
Step 5: Access Your Windows Files From Linux.
You can easily navigate to your Windows drives and files directly from your Linux terminal.
One of the coolest features of WSL is how it effortlessly bridges the gap between Windows and Linux. You do not have to worry about moving files back and forth between the two systems. Your Windows drives are automatically mounted and accessible under the /mnt directory within your Linux environment. So, for example, if your important files are stored on your C: drive in Windows, you can simply type cd /mnt/c from your Linux terminal to get right to them. It is like having a secret passage between your two operating systems, making file management incredibly convenient.
Step 6: Run Linux Commands and Applications.
You can now execute standard Linux commands and install Linux applications within your WSL environment.
This is where the real power of WSL comes into play. With your Linux distribution set up, you are free to use all the Linux tools you know and love, or learn new ones, right there on your Windows machine. Whether you are using git for version control, node for JavaScript development, python for scripting, or even installing a full-blown web server like Apache, WSL makes it possible. Simply type your commands into the terminal, and watch Linux do its magic, allowing you to develop and experiment without needing a separate machine.
After completing these steps, you will have a fully functional Linux environment running directly within Windows 11. It will be ready for development, scripting, or just exploring the Linux command line. You can open your chosen Linux distribution from your Start menu anytime you want to dive into your Linux world, providing a seamless blend of both operating systems.
Tips For Using WSL On Windows 11
- Use Windows Terminal for the best experience. This modern terminal app from Microsoft is designed to manage multiple command-line interfaces, including WSL, PowerShell, and Command Prompt, all in one customizable window. It offers tabs, split panes, and lots of personalization options.
- Install WSLg for graphical Linux apps. If you want to run Linux applications with a user interface, like a web browser or an image editor, WSLg is your friend. It is included by default in Windows 11 and allows you to launch GUI Linux apps that appear seamlessly on your Windows desktop.
- Keep your Linux distros updated. Just like Windows, your Linux installations need regular updates. Always run
sudo apt update && sudo apt upgrade(for Debian/Ubuntu based systems) inside your WSL distro to ensure you have the latest security patches and software versions. - Manage multiple distributions. You are not limited to just one Linux distro. You can install several and switch between them easily. Use
wsl --listto see your installed distros andwsl --set-defaultto choose which one launches by default. - Access your Linux files from Windows. If you need to peek at your Linux files from Windows Explorer, you can do so by typing
\wsl$into the address bar. This will show you all your installed WSL distributions, letting you browse their file systems directly. - Avoid editing Linux files with Windows apps directly. While you can see your Linux files from Windows, it is generally a bad idea to edit them using Windows applications like Notepad. This can sometimes cause permission issues or data corruption within your Linux environment. Stick to Linux tools for editing files stored in WSL.
- Leverage VS Code’s Remote Development. If you use Visual Studio Code, its Remote Development extension pack allows you to open any folder in WSL, granting you a fully-featured development environment that runs directly inside Linux, but with the comfort of the VS Code UI on Windows.
Frequently Asked Questions About WSL On Windows 11
What is WSL?
WSL, or Windows Subsystem for Linux, is a feature of Windows that lets developers run a Linux environment directly on Windows without the overhead of a traditional virtual machine or a dual-boot setup. It is designed to provide a seamless way to use Linux command-line tools, utilities, and applications alongside your regular Windows apps, truly giving you the best of both operating systems.
Do I need to restart my computer after enabling WSL?
Yes, typically a restart is required after enabling the “Windows Subsystem for Linux” feature in Windows. This ensures that the changes to your system’s features are fully applied, allowing WSL to function correctly. Without a restart, the feature might not be fully active, and you might encounter issues when trying to install or launch a Linux distribution.
Can I run graphical Linux applications with WSL?
Absolutely! With WSLg, which is included by default in Windows 11, you can run graphical Linux applications, often called GUI apps, directly on your Windows desktop. This means you can install and use popular tools like GIMP, the Linux version of VS Code, or even a full desktop environment if you wanted, and they will appear as native Windows applications.
How do I uninstall a Linux distribution from WSL?
You can easily uninstall a Linux distribution through the Windows Settings app. Simply navigate to “Apps,” then “Installed apps,” find the specific Linux distribution you want to remove, click the three dots next to it, and choose “Uninstall.” This process will completely remove the distribution and all its associated files from your WSL environment.
Is WSL a full virtual machine?
Not exactly. While WSL uses some virtualization technology under the hood, it is not a traditional virtual machine. It employs a lightweight utility virtual machine and a custom kernel to integrate Linux directly into Windows, offering significantly better performance and integration than a full-blown VM. It is more like a compatibility layer that allows Linux binaries to run natively.
Can I access my Windows GPU from WSL?
Yes, for certain workloads. WSL supports GPU compute, meaning you can leverage your Windows graphics card for demanding tasks like machine learning, artificial intelligence, or specific development scenarios directly from your Linux environment. This feature significantly boosts performance for applications that heavily rely on GPU acceleration.
Summary
- Enable WSL feature.
- Install Linux distribution.
- Set up user account.
- Update Linux system.
- Access Windows files.
- Run Linux commands.
Conclusion
Embarking on this journey with WSL on Windows 11 is truly about unlocking your computer’s full potential. We have walked through the fundamental steps, from flipping that crucial feature switch to installing your favorite Linux distribution, getting it updated, and even peeking at your Windows files from a Linux perspective. It is not just about typing commands; it is about merging two incredibly powerful operating system worlds into one seamless, harmonious experience. Think about it, you get the familiarity and vast software ecosystem of Windows, plus the robust, developer-friendly environment of Linux, all without the hassle of dual-booting or the resource drain of traditional virtual machines. This setup genuinely gives you the best of both worlds, right at your fingertips.
For developers, this integration is nothing short of a game-changer. Imagine building complex web applications using powerful Linux tools like Node.js or Python, testing them rigorously, and deploying them, all while having immediate access to your essential Windows desktop apps like Photoshop or Microsoft Office. The need for context switching becomes almost nonexistent, streamlining your workflow dramatically. You can comfortably use your preferred Windows Integrated Development Environment, like Visual Studio Code, and have it communicate directly with your Linux environment, making development incredibly fluid and efficient. It is like having a super-powered toolbox where every tool, no matter its origin, is perfectly integrated and ready for action.
Even if you are not a seasoned developer, learning to use WSL can be an incredibly empowering experience. It serves as an excellent introduction to the command line, which is a fundamental and highly valuable skill in computing, and provides you with a safe, isolated playground to experiment with open-source software. You can learn about package management, navigate different file systems, and even try your hand at basic scripting, all within an environment that will not mess with your primary Windows installation. It is a fantastic, low-risk way to broaden your technical horizons and expand your understanding of how computers work, without having to jump off the deep end.
So, what is the next step for you? Dive in! Experiment with different Linux distributions to find the one that best suits your needs. Try installing a new programming language or a specialized tool you have always wanted to explore. The official Microsoft documentation for WSL is also a treasure trove of information, offering deeper insights and advanced configurations. Remember, the community around WSL is vibrant and incredibly helpful, so do not hesitate to seek out forums or online groups if you get stuck or want to learn more advanced tricks. Mastering How To Use WSL On Windows 11 is not just a technical accomplishment; it is an invitation to explore a more versatile, powerful, and integrated computing experience. Your Windows machine just got a whole lot smarter, and with it, so can you. Keep exploring, keep learning, and truly enjoy the ride!

Matthew Burleigh has been writing tech tutorials since 2008. His writing has appeared on dozens of different websites and been read over 50 million times.
After receiving his Bachelor’s and Master’s degrees in Computer Science he spent several years working in IT management for small businesses. However, he now works full time writing content online and creating websites.
His main writing topics include iPhones, Microsoft Office, Google Apps, Android, and Photoshop, but he has also written about many other tech topics as well.