Copy data to mobile device in linux terminal.

First install these packages:

apt install adb_usb.inill libgl1-mesa-dev android-tools-adb android-tools-adbd lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++ libgcc1-dbglib32gcc-4.9-dev
Now attache your mobile with usb cord and run the adb command to find your mobile is attached:
#adb devices
List of devices attached
0123456789ABCDEF device
Run the command "adb shell" in terminal, this will execute the adb shell, now open your memory card wihe cd command:
cd sdcard
sdcard is mobile memory card, if you named it something else write the right name, ls will list the data of memory card, create and delete folders with mkdir and rm commmands.
To copy data to memory card exit from adb shell and run this command:
adb  push  file_name  /sdcard/path_to_folder
To copy from mobile the local pc use the pull command:
adb   pull   /sdcard/download/file_name   /home/user/
Read the adb man for more help.
Install android-sdk-linux
Download the android-sdk_r24.1.2-linux.tgz latest version from http://developer.android.com/sdk/index.html#Other
Unzip the package, open the tools directory and run the android "./android" in a terminal this will install all the necessary packages.
Read this article for complete installation in ubuntu.


<< Previous Next >>