Linux has a huge share here because of licensing costs, not technical merit. Can you imagine how much companies like Google, Facebook, and Amazon would have to pay Microsoft in licensing fees if they used Windows Server instead of Linux?
Linux is not a huge share anywhere. It is running on less than 2% of desktops worldwide. More that 25 years in the market, priced for free and they can't even give it away! There are a number of reasons for this!
Agreed, on the Desktop, Windows dominates, you are totally correct but the *actual* reason is very well known, it is no mystery.
The *only* reason that Linux is not utterly dominant on desktops everywhere is because of the
illegal monopoly stranglehold of Microsoft in the retail PC market.There is NO other reason.You can walk into any tech store and buy Windows PC's and Laptops with Windows pre-installed and working and it has always been that way. While you're in the same store, look for the Linux alternatives, where are they ?
Where are the preinstalled Linux PC's and laptops, the one that are CHEAPER than the Windows ones on the same hardware because Linux is Free ?
They are nowhere to be seen, Microsoft will either withdraw that retailers 'Windows discount' or sue them for 'breach of contract' if they offer Linux alongside Windows.
If anyone wants a pre-installed Linux PC or Laptop on the same hardware that they can buy Windows on, they have to build it themselves ... if they can get thru the layers of Windows only hardware lock-in that Microsoft has so carefully put in place.
If they want a laptop, they will have to buy a laptop with Windows preinstalled and wipe it to do so and Microsoft gets a sale anyway, this is well known as the "Windows Tax".
Linux is "not a huge share
anywhere", seriously ?
What OS utterly dominates in the Mobile Phone market ? (Android) Linux.
What OS totally dominates on tablets ? (android) Linux
What OS totally dominates on Chromebooks ? Linux
What OS totally dominates in routers, WiFi Ap's, managed switches, IoT devices, car infotainment, airline infotainment, gps devices ? ... Embedded Linux
What OS totally dominates in the cloud ? Linux
What OS is Google built on ? Linux
Even the Arduino system you love so much is GPL licensed because it was developed using Linux components.
I could go on, hopefully you will get the idea.