Vil du vide, hvordan du installerer Windows-undersystemet til Linux ved hjælp af Powershell? I dette selvstudium viser vi dig, hvordan du installerer et Linux-undersystem på en computer, der kører Windows.

• Windows 10

Liste over udstyr

I det følgende afsnit vises listen over udstyr, der bruges til at oprette dette selvstudium.

Som En Amazon Associate, tjener jeg fra kvalificerende køb.

Relateret tutorial - PowerShell

På denne side tilbyder vi hurtig adgang til en liste over tutorials relateret til PowerShell.

Selvstudium i Powershell - Installation af Windows-undersystemet til Linux

Start som administrator en udvidet Powershell-kommandolinje.

Windows 10 - powershell elevated

Installer Hyper-V.

Copy to Clipboard

Genstart computeren.

Copy to Clipboard

Installer funktionen Microsoft-Windows-Subsystem-Linux.

Copy to Clipboard

Genstart computeren.

Copy to Clipboard

Installer funktionen VirtualMachinePlatform.

Copy to Clipboard

Her er kommandoen output.

Copy to Clipboard

Hent og installer WSL2-kernepakken.

Windows Subsystem for Linux

Konfigurer standardversionen af WSL.

Copy to Clipboard

Hent og installer Ubuntu Linux til WSL fra Microsoft Store.

WIndows - Ubuntu WSL

I vores eksempel installerede vi Ubuntu Linux til WSL.

Start Ubuntu-programmet.

Windows - WSL Ubuntu

Opret en brugerkonto på Linux-terminalen.

Copy to Clipboard

Brug kommandoen UBUNTU fra en kommandolinje til at få adgang til Linux Shell.

Copy to Clipboard

Tillykke! Du er færdig med at installere Windows Subsystem til Linux ved hjælp af Powershell.

Selvstudium WSL - Administration

Start som administrator en udvidet Powershell-kommandolinje.

Windows 10 - powershell elevated

Vis alle WSL-distributioner, der er installeret.

Copy to Clipboard

Her er kommandoen output.

Copy to Clipboard

Angiv status for alle WSL-distributioner.

Copy to Clipboard

Her er kommandoen output.

Copy to Clipboard

Stop alle WSL-distributioner.

Copy to Clipboard

Her er kommandoen output.

Copy to Clipboard

Start WSL-distroen kaldet Ubuntu.

Copy to Clipboard

Tillykke! Du er i stand til at administrere en WSL-distribution.