changed 2 years ago
Published Linked with GitHub

WSL (Windows Subsystem for Linux) 安裝與使用教學

tags: wsl

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →
啟用 Windows 設定

以系統管理員權限開啟Power Shell,輸入下述指令:

DISM /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
DISM /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →
安裝Linux subsystem

wsl.exe --install 
預設安裝Ubuntu

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →
進入Linux subsystem 中

在PowerShell中執行下列指令即可進入 Linux 中
ubuntu
wsl
bash

或是在 powershell的選單中下拉,開啟新的Ubuntu視窗

用檔案總管 \\wsl$ 開啟 Unbuntu的目錄

相關連結:
Linux re-build後設定
Linux 常用指令
微軟官方文件:使用 WSL 在 Windows 上安裝 Linux

Author

  • 林奇賢
Select a repo