See command output and log at the same time date | tee -a mylog.og Remember to use the -a flag here to append to file. So the usage presented here is a simple: tee -a someFile Comments