pipe the output to the file


When you want to save the ter­mi­nal logs into an exter­nal file, use the fol­low­ing command.

<command> 2>&1 | tee foo.txt

Replace, the com­mand with your com­mand. For exam­ple, grunt unittest



You may also like...