https://learn.microsoft.com/zh-cn/windows/wsl/basic-commands === --- 以下WSL 命令以 PowerShell 或 Windows 命令提示符支持的格式列出。 若要通过 Bash/Linux 发行版命令行运行这些命令,必须将wsl替换为wsl.exe。 若要获取完整的命令列表,请运行wsl --help。 安装 PowerShell复制 wsl --install 1. 安...
PowerShell wslconfig.exe [Argument] [Options] PowerShell bash [Options] PowerShell lxrun /[Argument] 這些命令是用來設定隨 WSL 安裝之 Linux 發行版的原始 wsl 語法,但已取代為wsl或wsl.exe命令語法。 在GitHub 上與我們共同作業 您可以在 GitHub 上找到此內容的來源,在其中建立和檢閱問題和提取要求。 如...
2.2 启用虚拟机平台和 Linux 子系统功能 以管理员权限启动PowerShell或者cmd,然后输入以下命令启用虚拟机平台: Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform 1. 以管理员权限启动 PowerShell或者cmd,然后输入以下命令启用 Linux 子系统功能: Enable-WindowsOptionalFeature -Online -FeatureName...
Next, we need to set up our Go project. The project needs to be under the Windows file system (I’ll just make mine on my Desktop). Issue the following commands in PowerShell: Copy mkdir$env:USERPROFILE\desktop\goProjectcd$env:USERPROFILE\desktop\goProject New-Item hello.go Open the n...
一、安装wsl2 第一步:以管理员权限打开PowerShell。可以通过在Windows搜索栏中输入“PowerShell”,右键点击“Windows PowerShell”,并选择“以管理员身份运行”来实现。 第二步:在PowerShell中输入安装wsl2的命令。具体命令可以在Microsoft官方文档中找到,通常包括启用适用于Linux的Windows子系统和虚拟机 ...
PowerShell wsl--help See a list of options and commands available with WSL. Run as a specific user PowerShell wsl--user<Username> To run WSL as a specified user, replace<Username>with the name of a user that exists in the WSL distribution. ...
shell: 'C:\\Windows\\System32\\wsl.exe', shellArgs: ['~'], 这样我们打开hyper即可直接进入WSL. 3.主题和插件 使用以管理员身份打开打开Hyper,选择菜单->Plugins->Install hyper CLI command in PATH 使用以管理员身份打开打开Powershell/cmd
19 - that will run for a while. But call up another power shell window and confirm you have wsl version 2 installed. I tried these two commands : “ "wsl --list --verbose" and "wsl -l -v" HERE is where I started getting “** ...
You can now install everything you need to run WSL with a single command. Open PowerShell or Windows Command Prompt inadministratormode by right-clicking and selecting "Run as administrator", enter the wsl --install command, then restart your machine. ...
Then I installed Ubuntu from the Windows Store which gave me a WSLv1 distro working normally. I followed by running the command in powershell:Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatformand finallybefore rebootingI ranwsl --set-version Ubuntu 2which converted my disto ...