% 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
- How to list all users in Mac Terminal
- Docker Desktop needs privileged access macOS
- Mac: How to show count of files and folders in Finder
- How to Change Background Color TextEdit on Mac
- How to adjust MacBook Desktop icons size
- Test internet speed using macOS Terminal command
- How to change the default font and text size in Microsoft Excel for Mac
- How to install Java on macOS [Big Sur]
- How to come out of dquote prompt in Terminal - macOS/Linux
- How to Increase MacBook Trackpad Cursor Speed on macOS Ventura/Sonoma
- Fix: Microsoft Excel Quit Unexpectedly on Mac
- How to Adjust macOS System Font Size
- How to Quit Applications on Mac Using Terminal
- How to check zsh installed version using terminal
- Two Ways to Extract rar (*.rar) files on Mac
- How to Right Click on Mac Desktop?
- How to Add Brew to PATH M1/M2 Mac
- How to search (find) in macOS Terminal Console Text
- macOS 13 Ventura - The New About this Mac Window
- TextEdit Get the count of lines in a file
- How to run .sh file in Mac Terminal
- Google Search Hot Trends Screensaver for Mac OS X
- Check Reboot History Mac
- [Solution] Mac Update Stuck Preparing macOS Ventura 13.0 About 30 minutes remaining
- Display Safari URL address link on hover
- [jQuery] Uncaught ReferenceError: $ is not defined at index.html:5 - jQuery
- Setting up Zsh Syntax Highlighting - zsh
- What is the doctype for HTML5? - Html
- Failed to find provider info for com.facebook.katana.provider.PlatformProvider - Android
- Know Mac Model Number using Terminal - MacOS
- Python: Traverse List Backwards - Python
- How to Sync Microsoft Teams Calendar with Mac Calendar - Microsoft
- Error 404 Tomcat homepage http://localhost:8080/ not displayed - Tomcat
Facing issues? Have Questions? Post them here! I am happy to answer!
More Posts related to macOS,
More Posts: