0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

WSL コマンド一覧【備忘録】

Posted at

コマンド詳細

・学習ごとに内容を随時更新する。
・基本的なコマンドを記載。

既定のディストリビューションを確認

$ wsl --status

インストール可能なディストリビューションの一覧を表示

$ wsl --list --online

ディストリビューションを指定してインストール

$ wsl --install -d {ディストリビューション名}

インストール可能なディストリビューションの一覧を表示

$ wsl --list --online

インストール済みのディストリビューションの一覧を表示

$ wsl --list --verbose
$ wsl -l -v
# ディストリビューション名とバージョン情報が表示される

既定のディストリビューションを設定

$ wsl --set-default {ディストリビューション名}
$ wsl -s {ディストリビューション名}
# ディストリビューション名とバージョン情報が表示される

wslのバージョンを表示

$ wsl --version

wslのアップデート

$ wsl --update

wslの起動

$ wsl
# 既定のディストリビューションが起動

指定したディストリビューションを起動

$ wsl -d {ディストリビューション名}

# 例
$ wsl -d Ubuntu

WSL全体を終了する

$ wsl --shutdown

[ ディストリビューション ]
IT関連の場合、ディストリビューションはLinuxディストリビューションの省略表現であり、
OSとしてのLinuxまたは、その配布形態のこと。

※ 厳密には、LinuxはOSの名前ではなく、カーネル(OSの中核部分のソフトウェア)のことである。

<参考サイト>
https://wa3.i-3-i.info/word12473.html
https://wa3.i-3-i.info/word12472.html

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?