I'm using the command:
mv -v -f sourceDir destDir
How can I output the verbose console out to a file?
I'm using the command:
mv -v -f sourceDir destDir
How can I output the verbose console out to a file?
Try mv -v -f sourceDir destDir > out.file 2> err.file
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