--- title: "Install WSL" type: source tags: - "clippings" - "wsl" - "ubuntu" - "windows" date: 2026-04-18 --- ## Source File - [[raw/Home Office/Install WSL.md]] ## 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 - [[WSL]]:Windows Subsystem for Linux,允许在 Windows 上原生运行 Linux 二进制可执行文件 - [[WSL2]]:WSL 的第二代架构,使用轻量级虚拟机和支持完整的 Linux 内核,提升文件系统性能和系统调用兼容性 - [[PowerShell]]:Windows 命令行 shell,用于执行 WSL 安装和管理命令 - [[Windows Terminal]]:微软推荐的终端应用,支持多标签页,可在同一窗口中运行 PowerShell、WSL、命令提示符等 ## Key Entities - [[Microsoft]]:WSL 的开发者和发布者 - [[Ubuntu]]:WSL 默认安装的 Linux 发行版 - [[Debian]]:WSL 支持的 Linux 发行版之一 - [[Kali Linux]]:WSL 支持的安全/渗透测试专用 Linux 发行版 - [[WSL]]:OpenSUSE 等其他 WSL 支持的发行版 ## Connections - [[Install WSL]] ← extends ← [[WSL2 启动与网络配置指南]] ## Contradictions - (暂无发现冲突内容)