WSL - Windows Subsystem for Linux?
Sudhir kumar
Software Engineer | Automation Tools/Framework Developer | DevOps Engineer | Python | C# | Perl | Git | GitHub | GitHub Action | Jenkins | SonarQube
WSL (Windows Subsystem for Linux )?
Linux is a widely used operating system and is quite important for developers.?
There are times when you might need to have both operating systems – Windows and Linux – either for work, study, or even just experimentation. Luckily, Windows provides a convenient utility for using Linux alongside Windows. This utility is called WSL (Windows Subsystem for Linux). Its recent version is WSL2.?
It's a compatibility layer in Windows10/11 that allows you to run a Linux environment directly on a Windows machine without the need for a virtual machine or dual-boot setup. With WSL, you can run native Linux command-line tools and utilities directly on Windows, enabling developers to work seamlessly across both Windows and Linux environments.?
WSL is a great utility to use Linux on a native Windows machine. It gives room for learning specially to those who are just starting out.?
Advantages of using WSL???
There are some advantages of WSL over a traditional VM setup:??
How to Install WSL [Specific Linux Distro] on Windows 10?
Step 1: First, enable the 'windows subsystem for Linux' option From windows settings.?
Step 2: Open Command Prompt as an administrator and run below command?
领英推荐
Ex: wsl --install -d Debian?????????? # to install Debian version
Once installation of Ubuntu is complete, you'll be prompted to enter your username and password.?And, that's it! You are ready to use Ubuntu.??
Cross verify using wsl -l -v command
Upgrade Existing WSL1 Distributions to WSL2
If you have existing WSL1 distributions and you want to convert to WSL2, you can do so:?
Step1: Enable Virtualization: Make sure virtualization is enabled in your computer's BIOS settings. Access your BIOS setup by restarting your computer and entering BIOS (usually by pressing F2 or Del during boot).?
Step2: wsl --set-version <distribution name> 2?