I created basic script in Windows.
#!/bin/bash
echo Hello
I am using Cmder, ConEmu derivative. I tried to change the priviliges with chmod, but they are the same. I don't know how can I execute this script. Normal Linux way, which is: ./hello.sh does not work, and typing just hello.sh makes Windows try to open it, which is bad, since I want it in console. How to execute this script in ConEmu/Cmder?
I've noticed you can run bash
from cmder. So I could do it like:
> bash
$ ./yourScript.sh
or simpler
> cat yourScript.sh | bash
Disclaimer: New to cmder (just downloaded it) and Linux myself.