![]() ![]() Unregisters the specified WSL distribution Terminates the specified WSL distribution Immediately terminates all running WSL distributions ![]() Sets the specified WSL distribution as the default distribution for WSL commands.Ĭhanges the default WSL version for all new distributions installed to that systemĬhanges the WSL version of the specified distribution Show detailed information about all WSL distributions List only WSL distributions that are currently running Wsl –import Test-Ubuntu C:\data\Test-Ubuntu. Can specify WSL version with the –version option Imports a tar file as a new WSL distribution. Runs WSL command as the specified user as long as user exists on that distroĮxports the specified distribution to a tar file on your local system. Opens a terminal in the specified distribution’s shell Passes anything after this parameter to default shell. Will run command using without using default shell From here, you can run any Linux commands you wish.īelow you will find a reference to all of the options the wsl.exe provides when starting up. If you’ve set up WSL correctly, you’ll enter a bash terminal running on the WSL distro of choice. To start using WSL, open up a PowerShell terminal and type wsl. You can also set your default WSL version for any distros you install in the future to WSL2 by running wsl -set-default-version 2 Starting up WSL ![]() This command will return a full list of WSL distros and the version each distro is using. Confirm the command was successful by running wsl -l -v or wsl -list -verbose.Once you have the list, copy the name of the distro you want to run with WSL2 and run wsl -set-version 2, replacing with the name you copied earlier.List which versions of Linux you have installed by running wsl -l or wsl -list.If so, you can do so by following the below instructions. ![]() You might have to enable Linux to work with WSL version 2. At the time of this writing, you have a few other distributions available as well such as: This tutorial will be using Ubuntu 18.04. Next, choose your distribution of choice and install it. You should soon see a list of Linux distributions show up. Once Windows 10 comes back up, start setting up your chosen Linux distribution.įirst, open up the Microsoft Store and search for ‘WSL’. WSL does not install any Linux distribution on its own. Once complete, restart your computer and you’re done! Downloading a Linux Distribution for WSL Related: How to Run PowerShell as Administrator For now, it’s important to understand a little more about what WSL is doing under the hood.Įnable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux Since WSL is a simple Windows executable, you can call it from a command prompt or PowerShell terminal. WSL or C:\Windows\System32\wsl.exe is a Windows tool that allows you to install a Linux distribution as an app from the Windows store. Get a Demo of Specops uReset! What is WSL? Reduce service desk calls
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |