DEV Community

Discussion on: Differences Between MacOS and Linux Scripting

Collapse
 
csaltos profile image
Carlos Saltos • Edited

sed it's also slightly different ... and any other command and tool that is more BSD style than GNU style.

So to be clear, macOS and Linux are both Unix, thus they are similar because of that ... but macOS is BSD based and Linux is GNU based, thus different.

If you look for the commands behaviour for BSD and their counterparts for GNU it will help a lot.

FUN FACT: Linux is just the kernel, the operating system is formally GNU/Linux but no one does that, or we should ? ... maybe "macBSD" and "linuxGNU" are better names ? ... no !!