I am using the z Shell (zsh) instead of the default bash, and something wrong happen so that all commands who used to work are no longer recognized:
<
In my case, it was by mistake the commented code was uncommented at the very first line.
# If you come from bash you might have to change your $PATH.
The hash was removed. After adding it back worked fine.
I just posted this here so someone might find this helpful. Because it's just start of the line and might be deleted by mistake like I had done. And seems there's no solution after trying several ways.