wsl

Getting Started With WSL (Windows Subsystem for Linux )

astromium

Ayoub Belouadah

Posted on April 16, 2020

Getting Started With WSL (Windows Subsystem for Linux )

in this article we are going to cover the installation and the usage of WSL

WSL allows you to run a real Linux environement on windows without a virtual machine
Once you have it setup you can open the command line and start working on the file system like you are on Linux, and that's in fact on Linux and windows at the same time , you can be working on your server code on one screen while working on Adobe Photoshop on the other screen.

Note: WSL works only on windows 10

So lets get started

  • Open PowerShell as an administrator (win + x ) and run the following Commande:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Enter fullscreen mode Exit fullscreen mode
  • Install the Linux distro of your choice , go to Microsoft Store and type "Linux" to get the available distros

Microsoft store

  • Once the installation is complete , click on the launch button to initialize your distro You will be prompt to create a new user account and its password

Microsoft store

  • Update and upgrade your distro's packages
sudo apt update && sudo apt upgrade
Enter fullscreen mode Exit fullscreen mode

and that's it ! enjoy using your Linux distro on WSL , you can install all your dev tools like git, nodejs, docker and everything you need

check out the awesome tutorial from Fireship youtube channel
and the official documentation from Microsoft

💖 💪 🙅 🚩
astromium
Ayoub Belouadah

Posted on April 16, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related