image.png

Overview

WSL Command

# Check WSL Version
wsl -l -v        # List all WSL distributions with their versions
wsl -l           # List installed WSL distributions
wsl -v           # Show WSL version (available in WSL 2+)
wsl --status     # Show general WSL configuration and default version

# Update WSL to the latest version
wsl --update     # Update the WSL kernel and related components
wsl --version    # Show WSL version details (Windows 11+)

# List available Linux distributions
wsl --list --online  # Show available Linux distributions for installation

# Reset & Reinstall Ubuntu (Run in Windows Terminal)
wsl --unregister Ubuntu  # Remove Ubuntu (all data will be erased)
wsl --install Ubuntu  # Reinstall a fresh Ubuntu

Installation

Install Ubuntu for WSL from the Microsoft Store:

Required Windows Features

Additional