Where is adb command-line tool located?


The adb - Android Debug Bridge is the command-line tool used by Android developers to debug their applications on devices such as Mobile Phones, Tablets, TVs and Wearables running on Android OS.

If you are wondering where adb is located, you can try the following to get to it.


On Mac running macOS

  1. Open the Terminal App.
  2. Now move to the Android directory location under your home directory.
    cd ~/Library/Android/sdk/platform-tools
  3. Let's do an ls command to locate the adb file.
    ls -l
    total 49520
    -rw-r--r--§ 1 c2ctech  staff   1070931 Jul 13 23:13 NOTICE.txt
    -rwxr-xr-x§ 1 c2ctech  staff  13552336 Jul 13 23:13 adb
    -rwxr-xr-x§ 1 c2ctech  staff    240160 Jul 13 23:13 dmtracedump
    -rwxr-xr-x§ 1 c2ctech  staff    671344 Jul 13 23:13 etc1tool
    -rwxr-xr-x§ 1 c2ctech  staff   4137616 Jul 13 23:13 fastboot
    -rwxr-xr-x§ 1 c2ctech  staff    134624 Jul 13 23:13 hprof-conv
    drwxr-xr-x§ 3 c2ctech  staff        96 Jul 13 23:13 lib64
    -rwxr-xr-x§ 1 c2ctech  staff    562000 Jul 13 23:13 make_f2fs
    -rwxr-xr-x§ 1 c2ctech  staff    562016 Jul 13 23:13 make_f2fs_casefold
    -rwxr-xr-x§ 1 c2ctech  staff   1566768 Jul 13 23:13 mke2fs
    -rw-r--r--§ 1 c2ctech  staff      1157 Jul 13 23:13 mke2fs.conf
    -rw-r--r--§ 1 c2ctech  staff     18335 Jul 13 23:13 package.xml
    -rw-r--r--§ 1 c2ctech  staff        38 Jul 13 23:13 source.properties
    -rwxr-xr-x§ 1 c2ctech  staff   2808032 Jul 13 23:13 sqlite3
    
Locate adb file on Mac using Terminal


On Windows running Windows 8/10/11

  1. Go to My Computer.
  2. Now under C: drive navigate the following path.
    C:\Users\username\AppData\Local\Android\Sdk\platform-tools\adb.exe

You can also make use of CMD to locate adb path.

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap