What concerns me is that you're getting duplicates in your path. Have you added something to your
~/.bash_profile? You want to be very careful that you're not duplicating any of those existing path declarations in whatever you're doing. It's fine to modify PATH, but you want to be careful with it. Here's an example:
Note that I add my own stuff and then tack on the system stuff at the back with
Other things to check are making sure that you're not sourcing any unnecessary scripts during login that might muck with your environment. Be sure that if you're using a non-standard editor that you're saving in UNIX format. If you accidentally do things with DOS CRLFs, that can trigger command not found errors.
And just on the off chance that you've nuked your
~/.bash_profile, i.e., you absolutely don't have one anymore because you deleted it:
echo "" >> ~/.bash_profile
That is an odd one, but I've seen at least one guy claiming that command not found issues were fixed by creating a missing
Finally, note that if you do not wish to give a full path to the executable that you're running, e.g.,
~/Downloads/myScript.sh, you need to either place the executable somewhere in your existing path or you need to modify your path to point to the directory in which your executables are stored.