Windows Subsystem for Linux (WSL)

Enable via Powershell
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
Set Default Linux-Distribution (if you have installed multiple distros)
wslconfig /setdefault Ubuntu
List current installed distributions
wslconfig /l
Install new distribution

Browse the following URL:
https://aka.ms/wslstore
You will be redirected to the Windows Store App. Select desired distro and install it.

Microsoft Store / WSL
List currently running distributions
wslconfig /l /running
Terminate Linux-Distribution
wslconfig /terminate name-of-distribution
Run WSL-Command (Linux Commands) from cmd
wsl "command"
Examples:
wsl top
wsl ls -la
wsl ip addr show
Change color scheme in bash shell
alias -p codolor='LS_COLORS="ow=01;36;40" && export LS_COLORS' 

Leave a Reply

Your email address will not be published. Required fields are marked *