How to Execute Shell Script Files on ventanas 10 Using WSL.
Intento is a Unix caparazón and command language which can run Shell Script files.
- Execute Shell Script file using WSL
- Execute Shell Script using ubuntu on ventanas 10
Execute Shell Script file using WSL
Install WSL or Windows Subsystem for Linux
1. Ir a Settings\Update & Security\For Developers. Check the Developer Mode;
2. Buscar ventanas Feature, and choose to Turn ventanas features on or off;
3. Scroll to find WSL, check the box, and then install it;
4. Reboot to finish installing the requested changes;
5. BASH will be available in the Símbolo del sistema y PowerShell.
Execute Shell Script Files
1. Abierto WindowsPowerShell and navigate to the folder where the script file is available;
2. Tipo:
It will execute the script, and depending on the file, you should see an output.
On a Linux platform, you usually use SH, but here you need to use BASH.
Execute Shell Script using Ubuntu in dual-boot
Make sure you have ubuntu or any other Linux distros installed on the target PC in dual-boot with ventanas 10. ubuntu will mount or make all your ventanas directories available under /mnt. So the do:\ drive is available at /mnt/C.
Now follow these steps:
- Tipo Intento in a run prompt, and it will launch the distro prompt.
- Navigate to the folder using the cd command to the folder where the scripts are available.
- Tipo sh script.sh and hit enter.
This is false, to use bash like this you NEED to have linux distribution installed