Windows Subsystem for Linux: Difference between revisions
m add References template |
Add shortcut instructions in TLDR; and also reference to Docker docs on WSL |
||
| (One intermediate revision by the same user not shown) | |||
| Line 3: | Line 3: | ||
Like all things Windows, WSL is an executable binary c:\WINDOWS\system32\wsl.exe | Like all things Windows, WSL is an executable binary c:\WINDOWS\system32\wsl.exe | ||
==TLDR== | |||
To get to a Linux command prompt fast, just open a PowerShell window (<kbd class="keyboard-key nowrap">⊞</kbd>+<kbd class="keyboard-key nowrap">R</kbd> type <code>powershell</code> <kbd class="keyboard-key nowrap">↵</kbd>) and type <code>wsl</code><kbd class="keyboard-key nowrap">↵</kbd> to launch an interactive shell in the default Linux container for your local environment. | |||
==Prerequisites== | ==Prerequisites== | ||
To install WSL on Windows, you have one requirement to meet; you must have a Windows 10 64-bit computer Build 18917 '''or later'''. | To install WSL on Windows, you have one requirement to meet; you must have a Windows 10 64-bit computer Build 18917 '''or later'''. | ||
Press the '[[wp:Windows key|windows' key]] <kbd>⊞ | Press the '[[wp:Windows key|windows' key]] <kbd>⊞</kbd> and type <code>winver</code> to run the Windows Version utility in order to see your current Windows version. | ||
== Cheatsheet == | ==See Also == | ||
https://docs.docker.com/desktop/troubleshoot/topics/#working-with-git-bash | |||
== WSL Cheatsheet == | |||
Once you have WSL plus a distribution installed, all you need to do to open a Linux shell is open the Windows PowerShell, and type <code>wsl</code> which will start the default distro. | Once you have WSL plus a distribution installed, all you need to do to open a Linux shell is open the Windows PowerShell, and type <code>wsl</code> which will start the default distro. | ||
| Line 257: | Line 263: | ||
{{References}} | {{References}} | ||
[[Category:Linux]] | |||
[[Category:Windows]] | |||
[[Category:OS]] | |||