I've had a working installation of adb and fastboot (for Android debugging and development). It used to be that when I type adb
it launches the command line help for adb. Now it says this:
bash: /usr/local/bin/adb: No such file or directory
as if it's only looking for it in /usr/local/bin/adb
, right?
Though I still do have it in /usr/bin/adb
and can still use it by typing the absolute path.
Further more, I have several aliases in my Bash Aliases file; one of which is sysupgrade
(it does what it sounds like) but when I tried this today, it failed. So I ran the next lines in terminal interpreting some help wrong on a forum which says to put it in /etc/profile
:
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"
export PATH
But my aliases now work! It's just that adb and fastboot don't. I've tried which
and nping
which are all in /usr/bin
and they all work.
Update
Output of echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
Update 2
hash -r
didn't show anything. But hash
showed:
hits command
1 /usr/local/bin/adb
hash -r
a try.