commands not found on zsh [closed]

It’s evident that you’ve managed to mess up your PATH variable. (Your current PATH doesn’t contain any location where common utilities are located.) Try: PATH=/bin:/usr/bin:/usr/local/bin:${PATH} export PATH Alternatively, for “resetting” zsh, specify the complete path to the shell: exec /bin/zsh or exec /usr/bin/zsh

What is the “Illegal Instruction: 4” error and why does “-mmacosx-version-min=10.x” fix it?

From the Apple Developer Forum (account required): “The compiler and linker are capable of using features and performing optimizations that do not work on older OS versions. -mmacosx-version-min tells the tools what OS versions you need to work with, so the tools can disable optimizations that won’t run on those OS versions. If you need … Read more