コンテンツにスキップ

Windows Subsystem for Linux

出典: フリー百科事典『ウィキペディア(Wikipedia)』
Windows Subsystem for Linux
Microsoft Windows コンポーネント
Windows 10上で実行されたBash
詳細
種別 互換レイヤー仮想化
標準提供 Windows 10, version 1709
Windows Server, version 1709
Windows 10, version 1607(ベータ版)
置換 Microsoft Windows Services for UNIX

Windows Subsystem for LinuxWSLLinuxWindowsLinuxWindows 10/11Windows ServerWSL12016820171020192WSL2[1][2]

[]


WindowsUnix/LinuxHyper-VCygwinWSL1LinuxWindowsWSL2LinuxHyper-V

WSLWindows OSCygwinWSL1UNIXWindowsEXELinuxELF

Windows 10 MobileAndroidProject Astoria[3]

WSLWeb[4]

WSL1[]


Windows 10 version 1607 (Anniversary Update) Ubuntu 14.04 (Trusty Tahr) [5]WSL[6][7][8]

WSL1LinuxWindowsUbuntuBashLinuxsedawkCoreutilsRubyPython[4][9]

LinuxWSL[4][10]WSLLinuxWSLLinux[3]

使WindowsXXming, VcXsrv Windows X Server[11]

Windows 10 version 1607 (Anniversary Update)  version 1703 (Creators Update) version 1709 (Fall Creators Update)  Windows 10 S[12]Windows 10 IoT CoreWindows 10 Enterprise 2016 LTSBWSL[13]Windows ServerWindows 10 version 1607Windows Server 2016201788 Insider Preview Build 16237 [14][15]Windows Server, version 1709 

Windows 10 version 1703Windows 10201710Windows 10 version 1709[16]

WSL2[]


20196WSL1WSL2[17]Windows 10 May 2020 Update 2004WSL1

WSL1

Linux使[18]

Linux

LinuxNTFS

WindowsIP使

Linux使WindowsI/OI/O[19]

[]


2016330Build 2016[20]

201646Windows 10 Insider Preview  14316[21]

20168283Windows 10 Windows 10, version 1607 (Anniversary Update) [22]

201788Windows ServerInsider Preview Build 16237Windows Server[14]

201710171018Windows 10 Windows 10, version 1709  Windows Server, version 1709 Windows 10[23][24]

201956Build 2019WSLWSL 2[25]

2019612613WSL 2Windows 10 Insider Preview18917[26]

[]


UbuntuWindows 10 Fall Creators Update[27]MicrosoftWSL

WSLWindows 10 version 1607 (Anniversary Update) Ubuntu14.042017411version 1703 (Creators Update) 16.04 (Xenial Xerus) [28]20187Ubuntu 16.04 LTS18.04 LTS2023518.04 LTS20.04 LTS22.04 LTSCanonical

Ubuntu

openSUSE Leap 42[29]

SUSE Linux Enterprise Server[29]

Kali Linux[30]

Debian GNU/Linux[31]

Pengwin

Whitewater Foundry, Ltd. Co.DebianWSL

Pengwin Enterprise

Whitewater Foundry, Ltd. Co.Scientific LinuxWSL

Fedora Remix for WSL

Whitewater Foundry, Ltd. Co.FedoraWSL

Alpine WSL

Alpine LinuxWSLAlpine Linux development team

Oracle Linux

AlmaLinux

使[]

Ubuntu[]



$ sudo apt update
$ sudo apt upgrade

NetHackをプレイする。

$ sudo apt install nethack
$ nethack

X Window Systemのクライアントを実行する(あらかじめXmingなどのXサーバーをWindows上で起動しておく)

$ sudo apt install x11-apps
$ sudo apt install x11-utils
$ sudo apt install x11-xserver-utils
$ export DISPLAY=:0
$ xeyes
$ firefox

Windowsのコマンド プロンプトからUbuntuのls、date、sort、uniqコマンドを実行する

C:\Users\a>bash -c "ls -l '/mnt/c/Program Files'"
C:\Users\a>bash -c "date '+%Y年%m月%d日 %H時%M分%S秒'"
C:\Users\a>bash -c "sort|uniq" < "C:\work\テストデータ.txt"

Windowsのコマンドと連携する(bash のlsコマンドの結果をWindowsのclip.exeでクリップボードに送る例)

$ ls -l '/mnt/c/Program Files' | clip.exe

Windowsのデスクトップにあるファイルをコピーする(***はWindowsユーザ名)

$ sudo cp /mnt/c/Users/***/Desktop/ファイル名 ファイル名

関連項目[編集]

脚注[編集]



(一)^ WSL1 Windows 10LinuxWSL. 202317

(二)^ Windows 1011LinuxWSL. 2023219

(三)^ abWhy Microsoft needed to make Windows run Linux software. Ars Technica.   (201646). 2016102

(四)^ abcFrequently Asked Questions for WSL.  . 2016102

(五)^ Ubuntu 16.04 is slow in bash but ubuntu 14.04 was faster

(六)^ Run Bash on Ubuntu on Windows. Building Apps for Windows.   (2016330). 2016102

(七)^ Why Microsoft Making Linux Apps Run on Windows Isnt Crazy. Wired.  Condé Nast (2016330). 2016102

(八)^ Kirkland, Dustin (2016330). Ubuntu on Windows  The Ubuntu Userspace for Windows Developers. Ubuntu Insights.  . 2016102

(九)^ Bash on Ubuntu on Windows. MSDN.   (201649). 2016102

(十)^  (2016823). Bash on Ubuntu on Windows 使.  Digital Advantage. 2016102

(11)^ Aleksandersen, Daniel (201647). Running Linux desktop apps on the Windows Subsystem for Linux. Slight Future. 2016102

(12)^ Will Linux distros run on Windows 10 S? (2017518). 201761

(13)^ When I reinstall my win10 2016 LTSB, bash can not install · Issue #1281 · Microsoft/BashOnWindows. 20161213

(14)^ abWindows Subsystem for Linux on Windows Server - Building Apps for WindowsBuilding Apps for Windows

(15)^ Whats new in WSL in Windows 10 Fall Creators Update  Windows Command Line Tools For Developers

(16)^ Windows Subsystem for Linux. CodeZine.   (2017731). 20171021

(17)^ https://forest.watch.impress.co.jp/docs/news/1190081.html

(18)^ WSL1LinuxWindows API

(19)^ https://github.com/Microsoft/WSL/issues/873

(20)^ Frederic Lardinois (2016331). Build 2016MicrosoftWindows 10Bash.  AOL Online Japan, Ltd. 2016102

(21)^ Announcing Windows 10 Insider Preview Build 14316. Windows Experience Blog.   (201646). 2016102

(22)^  (2016829). Mac!? - "UNIX使"Windows Subsystem for Linux.  Ascii.jp. 2016102

(23)^  (20171019). Windows 10 Fall Creators Update. .  . 20171021

(24)^  (2017731). Windows Subsystem for Linux Fall Creators Update. .  . 20171021

(25)^ Craig Loewen (201956). Announcing WSL 2.  Microsoft. 2019624

(26)^ Announcing Windows 10 Insider Preview Build 18917.  Microsoft (2019612). 2019624

(27)^  (20171128). Fall Creators UpdateWindows 10 Linux. .  Impress Watch. 201837

(28)^   (201737). Bash on Ubuntu on WindowsCreators Update. Build Insider.  Digital Advantage. 2017616

(29)^ ab (2017724). openSUSE LeapWindows 10 SUSE Linux Enterprise Server. .  Impress Watch. 201837

(30)^  (201836). LinuxKali Linux. .  Impress Watch. 201837

(31)^ DebianKali LinuxMicrosoft.  ZDNet (201837). 201838

外部リンク[編集]