Files
nexus/wiki/sources/install-wsl.md
2026-04-28 20:03:11 +08:00

2.5 KiB
Raw Blame History

title, type, tags, date
title type tags date
Install WSL source
clippings
wsl
ubuntu
windows
2026-04-18

Source File

Summary用中文描述

  • 核心主题Windows Subsystem for Linux (WSL) 的安装与配置
  • 问题域:开发者如何在 Windows 系统上快速安装和使用 Linux 环境
  • 方法/机制:通过 wsl --install 一条命令自动启用 WSL 功能并安装 Ubuntu支持更换默认发行版、版本切换WSL 1/WSL 2、多发行版管理
  • 结论/价值:开发者可在 Windows 上无缝使用 Linux 工具链,无需虚拟机或双系统,适合跨平台开发

Key Claims用中文描述

  • 微软通过 wsl --install 命令实现一键安装:自动启用 WSL 所需功能 + 安装默认 Ubuntu 发行版
  • Windows 10 version 2004+ (Build 19041+) 或 Windows 11 才能使用该命令,旧版本需手动安装
  • 新安装的 Linux 发行版默认使用 WSL 2可通过命令在 WSL 1 和 WSL 2 之间切换
  • 支持同时运行多个不同 Linux 发行版,可从 Windows Terminal、开始菜单、PowerShell 等多种方式启动

Key Quotes

"Developers can access the power of both Windows and Linux at the same time on a Windows machine." — 官方文档开篇 "WSL lets developers install a Linux distribution... and use Linux applications, utilities, and Bash command-line tools directly on Windows, unmodified, without the overhead of a traditional virtual machine or dualboot setup." — WSL 核心价值描述 "New Linux installations, installed using the wsl --install command, will be set to WSL 2 by default." — WSL 2 默认设置说明

Key Concepts

  • WSLWindows Subsystem for Linux允许在 Windows 上原生运行 Linux 二进制可执行文件
  • WSL2WSL 的第二代架构,使用轻量级虚拟机和支持完整的 Linux 内核,提升文件系统性能和系统调用兼容性
  • PowerShellWindows 命令行 shell用于执行 WSL 安装和管理命令
  • Windows Terminal:微软推荐的终端应用,支持多标签页,可在同一窗口中运行 PowerShell、WSL、命令提示符等

Key Entities

  • MicrosoftWSL 的开发者和发布者
  • UbuntuWSL 默认安装的 Linux 发行版
  • DebianWSL 支持的 Linux 发行版之一
  • Kali LinuxWSL 支持的安全/渗透测试专用 Linux 发行版
  • WSLOpenSUSE 等其他 WSL 支持的发行版

Connections

Contradictions

  • (暂无发现冲突内容)