How to print Linux command output to a file?

Posted by vijay.shad on Super User See other posts from Super User or by vijay.shad
Published on 2010-04-29T17:35:25Z Indexed on 2010/04/29 17:38 UTC
Read the original article Hit count: 293

Filed under:
|

Hi,

I am creating a script to sync my important documents between two system. I want my script to generate a log file for the last action. can you suggest me a way to achieve this.

Question: If I execute the rsync command with -v flag, it will print a lot of messages on the console. Is there any way. So, I can redirect these logs to a file?

© Super User or respective owner

Related posts about linux

Related posts about command