In some cases, i need to use ./executable
instead of simply executable
when running a file in bash. What exactly is the difference and how do i know which one i should be using?
For example, i have an executable adb
in DEV/ADT/sdk/platform-tools
folder.
In bash, if i enter adb
and run it, i get the error : The program 'adb' is currently not installed. You can install it by typing: apt-get install android-tools-adb
But if i type ./adb
, it works perfectly.