"No such file or directory"? Can't push a file with `adb`

antonio@antonio-N150P-N210P-N220P:~$ adb push rom.zip /sdcard/
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
cannot stat 'rom.zip': No such file or directory
antonio@antonio-N150P-N210P-N220P:~$ adb push rom.zip /sdcard/
cannot stat 'rom.zip': No such file or directory
antonio@antonio-N150P-N210P-N220P:~$ ll ~/Downloads
total 573408
drwxr-xr-x 2 antonio antonio 4096 Jan 13 16:01 ./
drwxr-xr-x 19 antonio antonio 4096 Jan 13 16:29 ../
-rwxrwxr-x 1 antonio antonio 587156866 Jan 13 16:00 rom.zip*
antonio@antonio-N150P-N210P-N220P:~$ 

I can't use adb correctly.

3

1 Answer

Your rom.zip is in Downloads, but you are pushing files from your home directory ( That is evident by looking at your prompt , where you have ~ before $. )

antonio@antonio-N150P-N210P-N220P:~$ adb push rom.zip /sdcard/

Do this:

antonio@antonio-N150P-N210P-N220P:~$ adb push ~/Downloads/rom.zip /sdcard/

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like