Both of these utilities are available through Android.com. Visit the SDK Platform Tools download page to find the latest version of ADB and fastboot. Your operating system has built-in tools that can do this for you, but another option is to open it with a file extraction utility.
Windows
macOS
Linux
Linux users can use the following Terminal command, replacing destination_folder with whatever folder you want the platform-tool folder to end up in. The best way to do this is to open Terminal at the folder where the ZIP file resides. If that’s not the case, you need to modify the platform-tools-latest-linux.zip path to include the full path to the ZIP file. If the unzip utility isn’t installed, run this command: You can use 7-Zip or PeaZip instead if you’d rather not use these Terminal commands or they’re not working for you. The easiest way to do this is to first copy the path to the folder:
Windows
macOS
Linux
Follow these steps to edit the PATH file in macOS or Linux: Open Command Prompt or Terminal, and execute the adb command. If the result of the command is text similar to this: …then you’re ready to start using Android Debug Bridge from the command line!
adb devices shows which ADB supported devices are connected to your computer adb reboot restarts your phone adb backup creates a full backup of your phone and saves it to your computer adb sideload loads ROMs and other ZIP files from your computer onto your Android adb pull copies files from the phone to your computer adb shell allows commands to be run in a terminal on the Android device adb reboot -bootloader starts your phone in bootloader mode so that you can run fastboot commands.