0% found this document useful (0 votes)
232 views1 page

WSL Commands Cheat Sheet

This document is a cheat sheet for Windows Subsystem for Linux (WSL) commands, detailing various commands and their descriptions. It includes commands for listing, installing, running, terminating, and managing Linux distributions within WSL. Additionally, it provides commands for version management, exporting, importing, and updating WSL.

Uploaded by

nick200x0
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
232 views1 page

WSL Commands Cheat Sheet

This document is a cheat sheet for Windows Subsystem for Linux (WSL) commands, detailing various commands and their descriptions. It includes commands for listing, installing, running, terminating, and managing Linux distributions within WSL. Additionally, it provides commands for version management, exporting, importing, and updating WSL.

Uploaded by

nick200x0
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

WSL Commands Cheat Sheet

Command Description

wsl --list --online List available Linux distributions

wsl --install Install Ubuntu, the default distribution

wsl --install --distribution <dist_name> Install other available Linux distributions

wsl --list --verbose List installed Linux distributions

wsl -d <dist_name> Run a distribution from terminal

wsl -d <dist_name> --user <username> Run a distribution as a specific user

wsl ~ -d <dist_name> Open the distribution at the home of default user

wsl --set-default <dist_name> Set specified distribution as default distribution

wsl --terminate <dist_name> Terminate a running distribution

wsl --shutdown Shutdown WSL and related systems

wsl --version Get the version of WSL on your system

wsl --status Check the status of WSL, its configuration, etc

wsl --set-version <dist_name> <ver> Change the WSL version of a distribution

wsl --export <dist_name> <file.tar> Export a distribution to a tar file with given name

wsl --import <dist_name>


Import a distribution from a tar file
<import location> <exported file>

wsl --unregister <DistributionName> Unregister a distribution

wsl --mount <diskpath> Mount a disk

wsl --update Update WSL version

wsl --help Get help for WSL command and options

You might also like