Article 55TEB Logging verbose output of cp to a file?

Logging verbose output of cp to a file?

by
bbarker88
from LinuxQuestions.org on (#55TEB)
Sorry for the novice question, I cannot seem to figure out how to log the verbose output of cp to a file.

I am doing cp -Rv /source/folder /destination/folder | tee output.log (this is not working)
Also tried cp -Rv /source/folder /destination/folder >> output.log (also not writing to file).

I want the verbose output to be displayed both in the terminal window as the copy happens and I also want that verbose output written to a file. What am I missing?latest?d=yIl2AUoC8zA latest?i=h-_LDeikYg8:XMT_ftyi4hY:F7zBnMy latest?i=h-_LDeikYg8:XMT_ftyi4hY:V_sGLiP latest?d=qj6IDK7rITs latest?i=h-_LDeikYg8:XMT_ftyi4hY:gIN9vFwh-_LDeikYg8
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments