Forrest logo
back to the adb tool

adb:tldr:ce065

adb: Copy a file/directory from the target device.
$ adb pull ${path-to-device_file_or_directory} ${path-to-local_destination_directory}
try on your machine

The command "adb pull" is used to copy files or directories from an Android device to a computer. Here's the breakdown of the command:

  • "adb": It stands for Android Debug Bridge, a command-line tool that allows communication with an Android device from a computer.

  • "pull": This keyword specifies that you want to copy files from the Android device.

  • "${path-to-device_file_or_directory}": This is the path of the file or directory on the Android device that you want to pull (copy) to the computer. You need to replace "${path-to-device_file_or_directory}" with the actual path of the file or directory.

  • "${path-to-local_destination_directory}": This is the path on the computer where you want to store the pulled (copied) file or directory. Again, you need to replace "${path-to-local_destination_directory}" with the actual path of the local destination directory.

For example, if you want to pull a file named "example.txt" located at "/sdcard" on the Android device and save it in the "Downloads" directory on the computer, the command could look like:

adb pull /sdcard/example.txt ~/Downloads/

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the adb tool