System
ADB Debugging
Package Manager
Logcat
Wireless
File Manager
ScreenShot
Network
logcat
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
This command moves a file from one specified directory to another specified directory.
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.