LoginSignup
0
1

More than 5 years have passed since last update.

WSLをコマンドラインから起動する方法

Last updated at Posted at 2018-03-14

WSLをコマンドラインから起動する方法

ストアの実行ファイルがよくわからないことになってるけど、インストールさえしてしまえば実際は以下のコマンドだけで起動する。
コマンドプロンプトでもPowerShellでも起動する。

# 以下のパス内のexeが起動してる。
# C:\Users\ユーザー名\AppData\Local\Microsoft\WindowsApps

# Ubuntuが起動する。
$ ubuntu

# Debianが起動する。
$ debian

# openSUSE LEAP 42が起動する。
$ openSUSE-42

# SUSE Linux Enterprise Server12が起動する。
$ SLES-12

補足

Hyperでdebianを起動して使ってるけど、設定は以下の通り。
Windows向けのターミナルエミュレータはいろいろあるけど、こんな感じで起動するはず。
オプションは渡せないっぽい???

module.exports = {
  config: {
    ...
    shell: 'debian.exe',
    shellArgs: []
  }
}
0
1
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
1