Integrate Linux Commands into Windows with PowerShell and the Windows Subsystem for Linux

Don’t you find yourself typing the usual bash commandos into PowerShell from time to time? The natural second thought is often: “ah, I have to install cygwin or something”… but since I’m constantly switching back and forth between the Linux and Windows world, I of course also have WSL 2 on my Windows workstation … and there is a wonderful PowerShell module: https://github.com/mikebattista/PowerShell-WSL-Interop This allows the execution of Linux commands also in my PowerShell 7

Weiterlesen

Keeping your WSL Linux instances up to date automatically within Windows 10

Another great post from Scott Hanselman about keeping WSL instances up to date automatically within Windows 10: https://www.hanselman.com/blog/keeping-your-wsl-linux-instances-up-to-date-automatically-within-windows-10 I’ve done this on my development machine (which is running Windows 10 Pro) like this: Here’s a sample run of the script: As you can see, this is a Powershell script that does all for my 2 WSL instances. For Linux Development I’m using debian and for testing kali. Then (as Scott also mentioned in his post)

Weiterlesen