Set default Linux distribution wsl -set-default To set a default version of WSL 1 or WSL 2, replacing with either the number 1 or 2 to represent which version of WSL you would like the installation to default on for new Linux distribution installations. Set default WSL version wsl -set-default-version To designate the version of WSL (1 or 2) that a Linux distribution is running on, replace with the name of the distribution and replace with 1 or 2. Set WSL version to 1 or 2 wsl -set-version Additional options that can be used with the list command include: -all to list all distributions, -running to list only distributions that are currently running, or -quiet to only show distribution names. This command can also be entered as: wsl -l -v.
![backtrack linux cd commands backtrack linux cd commands](https://s3.eu-central-1.wasabisys.com/kirelos/wp-content/uploads/2020/08/06050356/the-22-most-basic-commands-of-kali-linux-950x500.png)
See a list of the Linux distributions installed on your Windows machine, including the state (whether the distribution is running or stopped) and the version of WSL running the distribution (WSL 1 or WSL 2). List installed Linux distributions wsl -list -verbose This command can also be entered as: wsl -l -o. See a list of the Linux distributions available through the online store. List available Linux distributions wsl -list -online This command can also be entered as: wsl -d.
![backtrack linux cd commands backtrack linux cd commands](https://www.kalitut.com/wp-content/uploads/2020/05/ls-command.png)
#BACKTRACK LINUX CD COMMANDS INSTALL#
Install a specific Linux distribution wsl -install -distribution ĭesignate a distribution of Linux for installation besides the default (Ubuntu) by replacing with the name of the distribution.
![backtrack linux cd commands backtrack linux cd commands](https://static.javatpoint.com/tutorial/kali-linux/images/kali-linux-commands4.png)
Install WSL and the Ubuntu distribution of Linux. To run these commands from a Bash / Linux distribution command line, you must replace wsl with wsl.exe. The WSL commands below are listed in a format supported by PowerShell or Windows Command Prompt.