is macos linux or unix?
No. macOS is built on a UNIX kernel known as Darwin, formerly called Mach. Mac OS X, later called macOS, was created from the technologies that Apple acquired from NeXT. NeXTStep was created before Linux.