Home FEATURES PRICING BLOG FREE TRIAL

Shell mv

shell mv

This command is used to move the file from one directory to other

adb shell mv -f /fromPath/file /toPath/file

Force copy by deleting destination file

adb shell mv -f /mnt/sdcard/Download/test.txt /mnt/sdcard/DCIM/test.txt

adb shell mv -i /fromPath/file /toPath/file

Interactive, prompt before overwriting existing destination

adb shell mv -i /mnt/sdcard/Download/test.txt /mnt/sdcard/DCIM/test.txt

adb shell mv -n /fromPath/file /toPath/file

No clobber (don't overwrite destination)

adb shell mv -n /mnt/sdcard/Download/test.txt /mnt/sdcard/DCIM/test.txt

adb shell mv /fromPath/file /toPath/file

adb shell mv /mnt/sdcard/Download/test.txt /mnt/sdcard/DCIM/test.txt

Frequently Asked Questions

What does adb shell mv command do?

This command moves a file from one specified directory to another specified directory.

Why is the adb shell mv command not working?

Since it is a shell command, it needs a device or an emulator connected for it to work. So make sure that you have one.