Comment by divbzero
2 years ago
Certification aside, Linux and macOS are so similar that I only think about the difference in the rare instances where they differ: three that come to mind are xdg-open vs. open , systemd vs. launchd, and sed -i vs. sed -i ''.
GNU coreutils often have many different options than their BSD counterparts. They both (generally) share a POSIX-specified base wrt options and behavior, but if you commonly only work with one of the two, it's easy to accidentally write non-portable shell scripts.
GNU vs BSD grep is the main one for me. And all the other extremely convenient GNU-isms that I've grown used to in GNU/Linux.
The only GNU-ism I really missed was the `--group-directories-first` option for `ls`
But that was easy enough to fix. ¯\_(ツ)_/¯
For me it's the fact that options cannot come at the end, eg this "rm somedir -r" which I always do (habit) works only with gnu version of cmds.
LXC vs... um... (sigh)...