WSL可讓您在Windows內部安裝您喜歡的Linux發行版,並通過終端或WSL命令行使用它。基本上,由於WSL,您在Windows中具有Linux的全部功能,而無需使用專用的虛擬機。但是,如何找到WSL 的可用Linux發行版並安裝它們?這就是這個簡單的教程發揮作用的地方。使用它,我將向您展示如何從可用列表中安裝WSL 中的Linux發行版以及如何在WSL 中安裝您喜歡的Linux發行版。讓我們開始。

在wsl

右鍵單擊 taskbar.select上的Windows Icon中找到並安裝Linux發行版。選擇“ terminal “。 WSL -安裝“ distroname”命令,同時用您之前提到的名稱替換“ distroname”。為此,請右鍵單擊任務欄上的Windows圖標,然後選擇“終端”選項。打開後,運行以下命令以列出WSL的所有可用linux發行版。

wsl-l-l-online

note :您可以使用WSL-L-L-L-L-all命令。 src=”https://i0.wp.com/windowsloop.com/wp-content/uploads/2025/02/search-list-distros-in-wsl-250225.jpg?resize=1024%2C644&ssl=1″>

Once you have the list, find the Linux distro you want to install and note down its name.您還可以通過選擇名稱並按“ Ctrl + C”來複製。例如,我想安裝“ Kali-Linux”。因此,我複制了它的名稱。

接下來,在以較早的步驟中獲得的實際發行名稱替換為“ distroname”時,運行以下命令。 src=“ https://i0.wp.com/windowsloop.com/wp-content/uploads/2025/02/wsl-install-install-distro-command-command-command-command-command-250225.jpg?Resize=1024%2C697&sssl=p lins comply comply comply command command command and command command and command and commant command and command, disto 。

注意:您可以使用wsl-l-l-all。 src=”https://i0.wp.com/windowsloop.com/wp-content/uploads/2025/02/wsl-command-to-launch-linux-distro-250225.jpg?resize=1024%2C250&ssl=1″>

If this is your first time launching the distro, you will be prompted to create a user account by typing the用戶名和密碼。輸入它們繼續。

您可以在此之後使用。如果需要,您還可以將其設置為WSL中的默認Linux發行版。當您不再需要它時,也可以從WSL卸載Linux發行版。

Categories: IT Info