Linux is quite different from macOS in many ways. They are both distantly inspired by "unix" (and Apple has managed to convince someone to let them use the trademark, so they really "are" unix, legally at least), but the similarity ends there.