Macbook -bash: sort: command not found

Written by Arvind

There can be many things causing this error, but for me, I accidentally added some random characters in PATH in my ~/.bash_profile. So don’t panic! like I did. Try to rename your bash profile and inspect the file and see if some unwanted characters have been added.