Windows Subsystem for Linux
With Windows 10 Creators Update one of the features that got released publicly is Windows Subsystem for Linux (WSL). But it was available for Windows 10 Insiders for almost like a year now and was initially announced at Build 2016. WSL basically lets you run Linux on Windows. If you are thinking about a VM, No, it’s not a Virtual Machine.
Configuring WSL on Windows shouldn’t take more than 10 minutes, by following these steps you can configure WSL pretty easily. Once you have configured WSL, you should be able to use Bash on Ubuntu, just by opening up the Command Prompt/PowerShell and running bash commands.
https://lh3.googleusercontent.com/-I1WFe8OuauQ/WRHNm6MHK2I/AAAAAAAAEaA/Zc2tnZD_dGgIl_14YtBQM2pJ8SX0We1cACHM/image_thumb%255B4%255D?imgmax=800 |
WSL |
Or you can Search for Bash in Windows, and there should be a desktop app named Bash on Ubuntu on Windows.
https://lh3.googleusercontent.com/-8QzcyU8hp4Y/WRHNoJ80OXI/AAAAAAAAEaI/fz2SxQud8AMUiTx5428C6aO4FI1OZwrmwCHM/image_thumb%255B8%255D?imgmax=800 |
Bash On Ubuntu On Windows |
Currently, under WSL only Ubuntu is supported. Maybe in the future Microsoft might support different flavors of Linux.
On WSL, one of the things that fascinates me more is the File System that is already mounted for you.
https://lh3.googleusercontent.com/-GeeV0XnnbV4/WRHNp6Hr4rI/AAAAAAAAEaQ/T25qUpbXtpsC2w348QbEBGGgdhcJyuKxACHM/image_thumb%255B13%255D?imgmax=800 |
File System |
And through the bash, we can just run mkdir and the folder will be appearing inside Windows Explorer the same time.
And most importantly we can run .NET Core Apps on WSL. Here we have installed .NET Core on WSL, (again it’s pretty easy, just follow the relevant steps described here) and created an ASP.NET Core HelloWorld application.
https://lh3.googleusercontent.com/-9dtAEE9_i0M/WRHNr9fL3CI/AAAAAAAAEaY/RVoRR--vaU0VBZKU1Qgzyxg1y-nMd2LkwCHM/image_thumb%255B16%255D?imgmax=800 |
.NET Core on WSL |
And we can just browse the site from a Web Browser in my Windows OS. Isn’t that just great?
Happy Coding.