Command Details

$ command | tee -a output_file

Append command output to a file and also display it in the terminal.