How can I log the output of the mv command in Linux?

Solution 1:

Try mv -v -f sourceDir destDir > out.file 2> err.file

Solution 2:

Invoke:

 exec > >(tee /tmp/logfile) 

All the output (to stdout) of your next commands will be duplicated to the logfile.
This will continue till you leave the shell.

If you want this only for some commands create a subshell with:

bash | tee /tmp/logfile