如何在Windows 10下面运行linux command

本文详细介绍了如何在Windows 10系统中启用并运行Linux命令,包括开启Windows Subsystem for Linux权限、检查系统配置、启用Virtual Machine功能、下载Linux内核更新包、设置WSL 2为默认版本以及通过Windows Store安装Ubuntu。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

本文主要参考了Windows Subsystem for Linux Installation Guide for Windows 10的步骤。

1. Enable the Windows Subsystem for Linux

用管理员身份运行windows powershell,输入下面的代码来开启linux subsystem的权限:

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

在这里插入图片描述

2. 检查Windows系统的配置

  • For x64 systems: Version 1903 or higher, with Build 18362 or higher.
  • For ARM64 systems: Version 2004 or higher, with Build 19041 or
    higher.
  • Builds lower than 18362 do not support WSL 2. Use the Windows
    Update Assistant to update your version of Windows.
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值