... Linux (which is also UNIX based) ...
Must disagree with you there.
As I understand Linus Torvalds developed Linux as an alternative to Unix to get away from having to pay the high costs of the operating system. It was analogous to the situation in the 70s/80s where BIOSes were being written in a clean room environment to emulate the IBM BIOS, again to circumvent payment of high fees.
One team would look at the BIOS and determine what the result of a certain action would be (maybe reverse engineering it) and then pass that information (but not the reverse engineering) on to the second team who would develop code to create the same result. This would functionally be the same as the IBM BIOS but, crucially, could not be accused of plaguarising the IBM code. Eventually the BIOSes that were produced became superior to the IBM ones and IBM gradually slipped away as a force to be reckoned with.
I'm unsure whether Torvalds developed Linux by himself or as part of a small team but he was the catalyst for its creation as he wanted to use Unix but not pay for it! The end result was an OS which behaved functionally the same as Unix without the cost. Linux, analogously to the BIOS timeline, eventually supplanted Unix in most applications and forced the creators of Unix to look again at their pricing model.
At least, that's how I understand it...