Search code examples
linuxwindowsraspberry-piraspberry-pi3windows-subsystem-for-linux

In what use cases I will need WSL


Ok so I read in Microsoft documentation about WSL https://learn.microsoft.com/en-us/windows/wsl/about.

The first paragraph says

The Windows Subsystem for Linux lets developers run Linux environments -- including most command-line tools, utilities, and applications -- directly on Windows, unmodified, without the overhead of a virtual machine.

My question is; In what conditions I, as a Developer would want to run Linux Environment in my windows? Probably when I develop something for the Linux Operating system and don't have the Linux operating system at my disposal? Or there is more to it?

I am new to the subsystem so any guidance would be appreciated.


Solution

  • This question borders on "primarily opinion-based," except that I think the folks at Microsoft had particular uses in mind.

    If you have a project on Linux, and you want to move it to Windows with minimum friction, then you probably want WSL. Your code can continue to use Linux APIs, and your build scripts can run in a bash shell and use all the typical Unix commandline tools. If you require Linux-only tools, you can run those, too. Otherwise, to port a project to Windows, you'd have to do a lot of work.

    And from Ars Technica:

    Microsoft is positioning WSL strictly as a tool for developers, with a particular view to supporting Web developers and the open source software stacks that they depend on. Many developers are very familiar with the bash shell, with building software using make and gcc, and editing text in vi or emacs. WSL will give these developers versions of these tools that are equal in just about every regard to the ones you get on Linux, because they'll be the ones you get on Linux running unmodified on Windows.