使用WSL在Win10下跑Linux === ###### tags: `WSL` `Linux` `Ubuntu` :::info :mage: 想學Linux卻沒有多餘的電腦,那來試試WSL吧 ::: 學習動機 --- 新公司得在Linux的環境下編譯程式,完全Linux小白的我、灌上虛擬機安裝了Ubuntu 卻覺得這東西實在太吃ram,操作起來總是覺得卡卡的不順。 找了找有種東西叫==WSL==(Windows Subsystem Linux) 可以讓我在熟悉的Windows下作業,用起來也可以達到我的工作需求。 安裝 --- ### Step 0-Open Windows-Subsystem-Linux feature in PowerShell ![](https://i.imgur.com/roVN8i5.png) ```shell Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux ``` ![](https://i.imgur.com/lgYGOjy.png) The system will reboot in the first time ### Step 1-Download Ubuntu in Mircosoft store ![](https://i.imgur.com/R3Kj3MG.png) enter username & password ![](https://i.imgur.com/AiWMsZo.png) ### Step 2-update & upgrade  ```shell sudo su apt-get update apt-get upgrade -y ``` 這樣就結束啦,那些黑黑的東西就是Linux呢:satisfied: