The reason you don’t do this on Windows, is because Windows uses the extension .exe
which signifies that if you double click it, you expect it to run. While on Linux, there is no standard filename extension for programs, so you tell your filesystem which files should be runnable with chmod +x filename
. Hope that makes sense.