在哪些用例中我需要 WSL
In what use cases I will need WSL
好的,我阅读了有关 WSL 的 Microsoft 文档
https://docs.microsoft.com/en-us/windows/wsl/about.
第一段说
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.
我的问题是;
在什么情况下,作为开发人员,我希望 运行 Linux 我的 windows 环境?可能是在我为 Linux 操作系统开发某些东西但没有 Linux 操作系统供我使用时?或者还有更多?
我是该子系统的新手,因此不胜感激。
这个问题与 "primarily opinion-based," 接壤,只是我认为 Microsoft 的人员有特定的用途。
如果您在 Linux 上有一个项目,并且希望以最小的阻力将其移动到 Windows,那么您可能需要 WSL。您的代码可以继续使用 Linux API,您的构建脚本可以 运行 bash shell 并使用所有典型的 unix 命令行工具。如果您只需要 Linux 工具,您也可以 运行 那些。否则,要将项目移植到 Windows,您将不得不做很多工作。
来自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.
WSL 可以 运行 在 Windows Linux 中开发的任何东西,并与 Windows 文件交互。
Microsoft 表示 Linux 和 Windows 进程之间的交互成为可能。不知道怎么办。
我成功使用 WSL 是 运行 在 Linux 中编写和测试的 bash 脚本,在 Windows 中重命名文件 Windows以我的规格为例。在 5 分钟的视频 here ( https://youtu.be/gzcIi31AszA 中提供了该脚本作为用例的描述)并可下载以供您自己测试。
Linux 的 Windows 子系统在您想要在 Windows 上构建需要一些 Linux-specific 构建命令(例如 rm
).在这种情况下,您可以在幕后轻松 运行 完整的 Ubuntu(或其他受支持的 Linux 发行版),同时保持编码 Windows.
在Visual Studio代码中这是通过WSL Remote extension. I find it so cool, that I made a full tutorial about it: https://www.youtube.com/watch?v=bRW5r7TK6KM
实现的
好的,我阅读了有关 WSL 的 Microsoft 文档 https://docs.microsoft.com/en-us/windows/wsl/about.
第一段说
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.
我的问题是; 在什么情况下,作为开发人员,我希望 运行 Linux 我的 windows 环境?可能是在我为 Linux 操作系统开发某些东西但没有 Linux 操作系统供我使用时?或者还有更多?
我是该子系统的新手,因此不胜感激。
这个问题与 "primarily opinion-based," 接壤,只是我认为 Microsoft 的人员有特定的用途。
如果您在 Linux 上有一个项目,并且希望以最小的阻力将其移动到 Windows,那么您可能需要 WSL。您的代码可以继续使用 Linux API,您的构建脚本可以 运行 bash shell 并使用所有典型的 unix 命令行工具。如果您只需要 Linux 工具,您也可以 运行 那些。否则,要将项目移植到 Windows,您将不得不做很多工作。
来自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.
WSL 可以 运行 在 Windows Linux 中开发的任何东西,并与 Windows 文件交互。
Microsoft 表示 Linux 和 Windows 进程之间的交互成为可能。不知道怎么办。
我成功使用 WSL 是 运行 在 Linux 中编写和测试的 bash 脚本,在 Windows 中重命名文件 Windows以我的规格为例。在 5 分钟的视频 here ( https://youtu.be/gzcIi31AszA 中提供了该脚本作为用例的描述)并可下载以供您自己测试。
Linux 的 Windows 子系统在您想要在 Windows 上构建需要一些 Linux-specific 构建命令(例如 rm
).在这种情况下,您可以在幕后轻松 运行 完整的 Ubuntu(或其他受支持的 Linux 发行版),同时保持编码 Windows.
在Visual Studio代码中这是通过WSL Remote extension. I find it so cool, that I made a full tutorial about it: https://www.youtube.com/watch?v=bRW5r7TK6KM
实现的