Redirecting Command-Line Output to Files

For programs that display a lot of text, consider redirecting text that is usually displayed on stdout to a file. Displaying a lot of text will slow down execution; scrolling text in a terminal window on a workstation can cause an I/O bottleneck (increased elapsed time) and use more CPU time.

The following commands show how to run the program more efficiently by redirecting output to a file and then displaying the program output:

myprog > results.lis

more results.lis

Redirecting output from the program will change the times reported because of reduced screen I/O.