Installing WSL
This guide explains how to install WSL.
What is WSL?
WSL stands for Windows Subsystem for Linux, which allows you to use a Linux environment directly on Windows.
Environment
- Windows 10 64-bit
Installation Steps
1. Install WSL and Ubuntu
Open Command Prompt or PowerShell as administrator and run the following command:
This installs both the WSL components and Ubuntu.
> wsl --install
If WSL is already installed and you just want to install Ubuntu, run:
> wsl --install -d Ubuntu
2. Restart your PC
Restart your computer.
After restarting, Ubuntu will launch automatically—just wait a moment.
3. Create a UNIX User
After a short wait, you’ll be prompted to create a UNIX user.
Enter a username and password of your choice.
Once Ubuntu finishes setting up, you can close the window.
4. Verify the Installation
To check that everything was installed correctly, run the following command in Command Prompt or PowerShell:
> wsl -l
Linux 用 Windows サブシステム ディストリビューション:
Ubuntu (既定)
This confirms that WSL and Ubuntu were installed successfully.