Skip to content

Instantly share code, notes, and snippets.

@prerakmody
Last active May 29, 2025 16:07
Show Gist options
  • Save prerakmody/2c1a341489d75eef13898c3e7f3a19e3 to your computer and use it in GitHub Desktop.
Save prerakmody/2c1a341489d75eef13898c3e7f3a19e3 to your computer and use it in GitHub Desktop.
WSL (Windows Subsystem for Linux) Commands
  1. Commands
    • Check installed distros: wsl -l -v
    • Set default wsl version for distros (prior to installing): wsl --set-default-version 2
    • Install Ubuntu 22.04: wsl --install -d Ubuntu-24.04
    • Select a specific distro: wsl -d <DistributionName>
    • Delete a specific distro: wsl --unregister <DistributionName>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment