Welcome to the WSL2 documentation! If you are using WSL2 on Windows, you are in the right place to find resources, tutorials, and best practices.

安装和配置

WSL2 (Windows Subsystem for Linux, version 2) is a compatibility layer developed by Microsoft that enables you to run a GNU/Linux environment natively on Windows 10 and Windows 11.

使用示例

Here are some common commands you might use in WSL2:

  • List directories: ls
  • Change directories: cd
  • Create a file: touch file.txt
  • Edit a file: nano file.txt

Linux command line in WSL2

资源和扩展阅读