% adb devices
zsh: command not found: adb
If you are trying to run a adb command on the Mac Terminal and you get the error "zsh command not found adb" then the most common issue reasons for this is as follows.
Reasons for the error
- You are not running the adb command-line tool from the directory its located in.
- The adb path is not set in the .zshrc profile file.
Fix/Solution
Make sure you are inside the location where adb tool is located.
Example:% cd ~/Library/Android/sdk/platform-tools
% ./adb version
Android Debug Bridge version 1.0.41
Version 34.0.4-10411341
Installed as /Users/c2ctechtv/Library/Android/sdk/platform-tools/adb
Running on Darwin 23.0.0 (arm64)
Its better to add this path to the .zshrc file.
- Open .zshrc file.
nano ~/.zshrc - Add the below line to the zshrc file.
export PATH="$HOME/Library/Android/sdk/platform-tools:$PATH" - Control + X and Y followed by Enter to save changes to the file (if using Nano)
- Run source ~/.zshrc to apply changes

Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!