50% off 全プラン、期間限定。料金は $2.48/mo
Initial Documents

Install linux on windows wsl

By Parnian R. 4 min read Updated Feb 15, 2026

Many users can benefit from the ability to run both Windows and Linux
Windowsマシン上で同時に実行できます。Windows Subsystem for Linux
(WSL) を使用すると、Linuxディストリビューション(Ubuntuなど)を
OpenSUSE, Kali, Debian, Arch Linux, etc) and use Linux applications,
ユーティリティおよびBashコマンドラインツールをWindowsで直接実行できます。変更の必要はありません。
without the overhead of a traditional virtual machine or dual-boot
setup.

Prerequisites:

始める前に、正しいバージョンを実行していることを確認することが重要です。
version of Windows:

Check Windows Version:

Windowsのバージョンを確認するには、次の手順に従ってください。

  • Windows + Rを押して、ファイル名を指定して実行ダイアログを開きます。

  • Type winver and press Enter.

  • A window will pop up displaying your Windows version and build
    バージョン番号を確認してください。Windows 10 バージョン2004以降を実行していることを確認してください。
    (Build 19041 and higher) or Windows 11 to use the commands
    below.

Check Windows Version

Install WSL

You can now install everything you need to run WSL with a single
コマンドを実行します。手順は以下の通りです。

Step
1: コマンドプロンプトを管理者モードで開く

  1. Windowsのスタートボタンを右クリックします。

  2. Select Windows Terminal (Admin) or
    コマンド プロンプト (管理者)これは重要です。
    インストールには管理者権限が必要です。

Step 2: Enter the
Installation Command

コマンドプロンプトまたは Windows ターミナルで管理者権限を使用して、
enter the following command:

wsl --install --web-download
Enter the Installation Command

Change the
Default Linux Distribution

デフォルトでは、インストールされた Linux ディストリビューションは Ubuntu になります。ただし、
you can change this default distribution using the -d
flag.

インストールするディストリビューションを変更するには、以下の手順に従ってください。

  1. コマンドプロンプトまたは Windows ターミナルを開きます。

  2. Enter wsl –list –online to see a list of
    available Linux distributions for download through the online
    store.

Open a Command Prompt
  1. Replace Distribution Name with the name of the
    必要なディストリビューションを選択して実行します。
wsl --install -d <Distribution Name>
Install Distro

How to Run a
Linux Distribution with WSL

Once you’ve installed a Linux distribution using Windows Subsystem
Linux (WSL) では、簡単に起動して作業を開始できます。方法は以下の通りです。
Linux ディストリビューションを実行するには、

  1. Windows のスタートメニューの検索バーに、インストール済みディストリビューションの名前を入力します。
    Linux ディストリビューション。たとえば、Ubuntu がインストール済みの場合は、単純に
    type Ubuntu.

  2. Windows will display your Linux distribution in the search
    結果から選択してクリックし、ディストリビューションを起動します。

Start Menu Search

Option 2: Command
Line

You can also run your Linux distribution from the command line in
Windows. Here’s how:

  1. コマンドプロンプトまたは Windows ターミナルを開きます。

  2. インストール済みディストリビューションの名前を入力します。たとえば、
    have Ubuntu, type ubuntu を入力してEnterキーを押してください。

Choose distro

Basic Commands for
WSL

Now that you have WSL installed and have set up your Linux
ディストリビューションを使用する場合は、基本的なコマンドに慣れておくことが重要です。
Linux 環境内で効率的に作業するためのコマンドを以下に示します。
some key commands you can use within WSL.

List Installed Linux
Distributions:

To view a list of the Linux distributions installed on your Windows
machine, including their state and WSL version, use:

List of distros

Set WSL Version:

特定の Linux ディストリビューションの WSL バージョン (1 または 2) を設定するには、
use:

wsl --set-version <distribution name> <versionNumber>
Set WSL version

Set Default WSL
Version:

To set a default version of WSL (1 or 2) for new Linux distribution
installations, use:

wsl --set-default-version <Version>
Set default WSL version

Set Default Linux
Distribution:

wsl コマンドで使用するデフォルト Linux ディストリビューションを設定するには、
use:

wsl --set-default <Distribution Name>
Set default Linux distro

Run a Specific Linux
Distribution:

特定の Linux ディストリビューションを特定のユーザーで実行するには、以下を使用してください。

wsl --distribution <Distribution Name> --user <User Name>
Run a specific Linux distro

Removing a
Specific Linux Distribution

If you want to remove a specific Linux distribution from your WSL
setup, follow these steps:

  1. コマンドプロンプトまたは Windows ターミナルを開きます。

  2. Run the following command and replace distro
    name
    with the name of the distribution you want to
    remove:

wsl --unregister <distro name>
Remove a specific Linux distro

このコマンドは、指定されたディストリビューションを WSL から登録解除し、
システムから削除します。そのディストリビューションに関連するすべてのデータ、設定、および
ソフトウェアは永久に削除されることに注意してください。

Uninstall WSL from
Your Computer

コンピューターから WSL を完全にアンインストールする場合は、以下の手順に従ってください。
these steps:

  1. コマンドプロンプトまたは Windows ターミナルを開きます。

  2. Below command will disable the Windows Subsystem for Linux
    システムから無効化されます。無効化されると、WSL はコンピューターから削除されます。
    computer.

Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Uninstall WSL

WSL を使用すると、Windows と Linux の統合がスムーズに進みます。
ensuring you have the right Windows version to executing commands for
Linux ディストリビューションのインストールと実行のプロセスは、
簡潔です。さらに、Linux ディストリビューションを管理できます。
効率的に基本的なWSLコマンドを使用できます。詳しい情報が必要な場合は、
その他のサポートが必要な場合は、サポートチームまでお気軽にお問い合わせください submitting a
ticket
.

Share

Need help with something else?

Median response time under 1 hour. Real humans, not bots.