Execute Linux commands at Windows OS with Powershell

As it turned out, I can execeute linux scripts at my Windows PC with WSL installed with Powershell!

Just write ‘wsl -e ‘ and after that a command to execute.

For example,
wsl -e mc
And you have executed midnight commander in windows powershell

You can also execute bash scripts
wsl -e ./var/www/script.sh

Leave a Reply

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