Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support. If you're running an older build, or just prefer not to use the install command and would like step-by-step directions, see WSL manual installation steps for older versions. This command will enable the features necessary to run WSL and install the Ubuntu distribution of Linux. This default distribution can be changed.
The first time you launch a newly installed Linux distribution, a console window will open and you'll be asked to wait for files to de-compress and be stored on your machine. All future launches should take less than a second.
By default, the installed Linux distribution will be Ubuntu. This can be changed using the -d flag. If you run into an issue during the install process, check the installation section of the troubleshooting guide. To install a Linux distribution that is not listed as available, you can import any Linux distribution using a TAR file. Or in some cases, as with Arch Linuxyou can install using an. You can also create your own custom Linux distribution to use with WSL. Once you have installed WSL, you will need to create a user account and password for your newly can i download linux on windows 10 Linux distribution.
See the Best practices for setting up a WSL development environment can i download linux on windows 10 to learn more. We recommend following our Best practices for setting up a WSL development environment guide for a step-by-step walk-through of how to set up a user name and password for your installed Linux distribution susing basic WSL commands, installing and customizing Windows Terminal, set up for Git version control, code editing and debugging using the VS Code remote server, good practices for file storage, setting up a database, mounting an external drive, setting up GPU acceleration, and more.
Now running wsl npm init from Powershell will run the npm init command in Debian. Learn more in the guide can i download linux on windows 10 Basic commands for WSL. New Linux installations, installed using the wsl --install command, will be set to WSL 2 by default. For example, wsl --set-version Ubuntu If you manually installed WSL prior to the wsl --install command being available, you may also need to enable the virtual machine optional component used by WSL 2 and install the kernel package if you haven't already done so.
WSL supports running as many different Linux distributions as you would like to install. This can include choosing distributions from the Microsoft Storeimporting a custom distributionor building your own custom distribution.
The method you select should depend on what you're doing. Once you have joined Windows Insiders, you can choose the channel you can i download linux on windows 10 like to receive preview builds from inside the Windows settings menu can i download linux on windows 10 automatically receive any WSL updates or preview features associated with that build. You can choose from:. Skip to main content. This browser is no longer supported.
Download Microsoft Edge More info. Table of contents Exit focus mode. Table of contents. Submit and view feedback for This product This page. View all page feedback. In this article.
Your submission was sent successfully! Windows Subsystem for Linux WSL allows you to install a complete Ubuntu terminal environment in minutes on your Windows machine, allowing you to develop cross-platform applications without leaving Windows.
These instructions will work on both Windows 10 or Windows Whilst WSL is a powerful tool for all users, some features, such as the ability to run graphical Linux applications, are only available on Windows Please check out our Windows 11 tutorial for more information. Installing WSL is now easier than ever. You can find them by opening the Microsoft store app and searching for Ubuntu. Choose the distribution you prefer and then click on Get as shown in the following screenshot:.
There is a single command that will can i download linux on windows 10 both WSL and Ubuntu at the same time. When opening PowerShell for the first time, simply modify the initial instruction to:.
Once installed, you can either launch the application directly from the store or search for Ubuntu in your Windows search bar. The location of this option can i download linux on windows 10 by manufacturer, so you will need to refer to can i download linux on windows 10 documentation to find it. Once Ubuntu has finished its initial setup you will need to create a username and password this does not need to match your Windows user credentials.
Installing packages on Ubuntu is as easy as using a single command. Below, you will see how to install bpythona simple python interpreter for trying out ideas, featuring some nice usability features like expected parameters and autocompletion.
We recommend installing Windows Terminal Preview to get the most user-friendly setup. You can find it in the Microsoft Store. Windows Terminal allows you to open multiple Terminal instances as tabs, so you can have PowerShell running alongside Ubuntu.
It also includes a number of customisation options. These customisations can be applied universally using the Appearance menu in Settings or to individual profiles which each have their own Appearance menu. Try it yourself to find something you feel comfortable with!
You also got some tips on how to customise your experience. We hope you enjoy working with Ubuntu inside WSL. Ubuntu and Canonical are registered trademarks of Canonical Ltd. Overview Windows Subsystem for Linux WSL allows you to install a complete Ubuntu terminal environment in minutes on your Windows machine, allowing you to develop cross-platform applications without leaving Windows.
Was this tutorial useful? Thank you for your feedback. Legal information Data privacy Manage your tracker settings Report a bug on this site.