Mike Casa
Mike Casa

Reputation: 471

Android : adb shell, no command adb found

I am simply trying to run the adb shell so I can kill a process for testing purposes. I am in the directory platform-tools and the adb executable is in there. When I try to run the shell it says adb command not found. I am running eclipse (through Ubuntu) and using an emulator. Not sure whats going on. Thanks a lot.

Upvotes: 3

Views: 9593

Answers (3)

summer
summer

Reputation: 136

You can create a link for adb like this : ln -s adb /usr/local/sbin/adb then you can run adb anywhere

Upvotes: 0

Leif Andersen
Leif Andersen

Reputation: 22332

adb is not in your path. It's easy enough to add it to your path though, if you're using the latest version of the sdk, open up your .profile file (in your home directory, that's (dot) profile) and add the lines:

PATH=/path/to/sdk/android-sdk-linux_86/tools:$PATH
PATH=/path/to/sdk/android-sdk-linux_86/platform-tools:$PATH

Upvotes: 4

MByD
MByD

Reputation: 137272

Run it like that ./adb shell (note the ./)

By default, local folder is not in the path.

Upvotes: 10

Related Questions