I have written a script that transparently transforms the macOS CLI into a fresh GNU/Linux CLI experience by
- installing missing GNU programs
- updating outdated GNU programs
- replacing pre-installed BSD programs with their preferred GNU implementation
- installing other programs common among popular GNU/Linux distributions
https://github.com/fabiomaia/linuxify
git clone https://github.com/fabiomaia/linuxify.gitcd linuxify/./linuxify install
It also allows you to easily undo everything.
./linuxify uninstall