WSL Series 1: Installation of Windows Subsystem for Linux
WSL , or Windows Subsystem for Linux, is a feature that allows you to run Linux distributions natively on Windows via a compatibility layer, it was added in Windows 10 . It allows you to have access to a terminal window where you can do all sorts of things you are allowed to do on Linux. it even allows you to access your Windows drives and run commands on them as we will see in subsequent tutorials.
First things first, let's see how to install WSL v2, as WSL v1 is deprecated.
Prerequisites for installing WSL v2 :
you must have Windows 10 version 2004 or higher.
to check your Windows version, enter keyboard combination Windows+R and enter winver command, like following :
After that, a window like the following screenshot will appear :
Check you have the proper Windows version, otherwise upgrade your system to a a Windows version higher or equal to 2004.
Activate Windows options for WSL :
Go to Configuration Panel, click on uninstall or change a program, on the left pane, click on turn Windows features on or off. a window like this one will appear :
Slide to the bottom and check the option Windows Subsystem for Linux, like following :
Once you click Ok, the system will install it and prompts you to reboot the your PC :
check WSL is installed :
In order to check that you have successfully installed WSL v2, open a power shell window and run following command :
wsl -l -v
Congratulations, WSL has been installed, and the message displays that you don't have any Linux distributions installed yet.
In the next tutorial, we will see how to install a Linux distribution on WSL.
Happy Learning guys !