MAC is BSD UNIX.
Its UNIX -- UNIX --- UNIX.
The Aqua interface is proprietary -- but under the hood its all UNIX. For example, need to set file permissions on the Mac -- you can do it UNIX way (terminal mode), or through the GUI. Copy files / remove etc .. you can do it the UNIX way or the GUI way -- etc. etc.
Whatever you can do in BSD UNIX you can do on the Mac.
Macs migrated to UNIX with version X. (at least 5 years ago now, maybe more.)
The OS X has given a new lease on life for my older Mac. :)