Command Details

$ command | tee output_file

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