Linux subsystem in Windows OS: Difference between revisions

From LinuxizeNet
(Created page with "How to enable linux in a Windows OS #Open Windows Powers hell as an Administraotr <syntaxhighlight lang="Bash"> wsl -l -o </<syntaxhighlight>")
 
No edit summary
Line 1: Line 1:
How to enable linux in a Windows OS


#Open Windows Powers hell as an Administraotr
==How to enable [[Linux]] in a [[Windows]] OS==
<syntaxhighlight lang="Bash">
You can run a [[Linux]] distribution in your [[Windows]] system installing Windows Subsystem for Linux. It is very useful for development purposes and some testing.
[[File:WinLogo.jpg|200px|right|thumb]]
==Open Windows Powers hell as an Administrator==
<syntaxhighlight lang="powershell" >
wsl -l -o
wsl -l -o
</<syntaxhighlight>
PS C:\Windows\system32> wsl -l -o
The following is a list of valid distributions that can be installed.
Install using 'wsl.exe --install <Distro>'.
 
NAME                                  FRIENDLY NAME
Ubuntu                                Ubuntu
Debian                                Debian GNU/Linux
kali-linux                            Kali Linux Rolling
Ubuntu-18.04                          Ubuntu 18.04 LTS
Ubuntu-20.04                          Ubuntu 20.04 LTS
Ubuntu-22.04                          Ubuntu 22.04 LTS
OracleLinux_7_9                        Oracle Linux 7.9
OracleLinux_8_7                        Oracle Linux 8.7
OracleLinux_9_1                        Oracle Linux 9.1
openSUSE-Leap-15.5                    openSUSE Leap 15.5
SUSE-Linux-Enterprise-Server-15-SP4    SUSE Linux Enterprise Server 15 SP4
SUSE-Linux-Enterprise-15-SP5          SUSE Linux Enterprise 15 SP5
openSUSE-Tumbleweed                    openSUSE Tumbleweed
</syntaxhighlight>
==Choose your [[Linux]] Distribution and install==
<syntaxhighlight lang="powershell" >
wsl --install -d Ubuntu
</syntaxhighlight>
==Reboot [[Windows]]==
Reboot your [[Windows]] system.
[[Category: Linux]]
[[Category: Windows]]

Revision as of 08:00, 20 January 2024

How to enable Linux in a Windows OS

You can run a Linux distribution in your Windows system installing Windows Subsystem for Linux. It is very useful for development purposes and some testing.

Open Windows Powers hell as an Administrator

wsl -l -o
PS C:\Windows\system32> wsl -l -o
The following is a list of valid distributions that can be installed.
Install using 'wsl.exe --install <Distro>'.

NAME                                   FRIENDLY NAME
Ubuntu                                 Ubuntu
Debian                                 Debian GNU/Linux
kali-linux                             Kali Linux Rolling
Ubuntu-18.04                           Ubuntu 18.04 LTS
Ubuntu-20.04                           Ubuntu 20.04 LTS
Ubuntu-22.04                           Ubuntu 22.04 LTS
OracleLinux_7_9                        Oracle Linux 7.9
OracleLinux_8_7                        Oracle Linux 8.7
OracleLinux_9_1                        Oracle Linux 9.1
openSUSE-Leap-15.5                     openSUSE Leap 15.5
SUSE-Linux-Enterprise-Server-15-SP4    SUSE Linux Enterprise Server 15 SP4
SUSE-Linux-Enterprise-15-SP5           SUSE Linux Enterprise 15 SP5
openSUSE-Tumbleweed                    openSUSE Tumbleweed

Choose your Linux Distribution and install

wsl --install -d Ubuntu

Reboot Windows

Reboot your Windows system.