Shell in Windows

Command Prompt

Windows settings (Win key + i) > search Windows Features > Enable (and install) Windows Subsystem for Linux

To install distro,

Pick one from list

wsl --list --online


wsl -d --install <distroname>

In cmd: Bash <*.sh filename>


Run PowerShell as administrator

wsl --install

Windows files are located in the mnt folder that’s located in the / root.

The Ubuntu’s root is located here in Windows:


To run *.sh files, use: sh <filename>

As wsl is installed as an app, access it as how you access apps.


  1. The Windows Club. 2021. How to run .sh or Shell Script file in Windows 11/10. [online] Available at: <> [Accessed 26 October 2021].
  2. Hoffman, C., 2021. Everything You Can Do With Windows 10’s New Bash Shell. [online] How-To Geek. Available at: <> [Accessed 26 October 2021].

--- :: Skyferia Tech's Related Posts :: ---