Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running a make file and when it runs it prints a whole bunch of log with errors and warnings. Please let me know how will I be able to see the output one page at a time. Or after the make file is run, how will I be able to scroll up and scroll down. I am using secure CRT to log on to Linux from a windows machine. Thanks.

share|improve this question
up vote 4 down vote accepted

Before running make, pipe its STDOUT into a viewer, like less.

make | less

Then, you can skip through pages with CtrlV. Alternatively, write the output to a file and read it later:

make > make.out
less make.out

Quit less with Q.

share|improve this answer
To capture stderr as well as stdout, use this when you pipe: make 2>&1 | less; and this when you output to a file: make > make.out 2>&1. – garyjohn Jul 12 '12 at 18:12

It is often useful to capture both stdout and stderr, so something like this would work:

make > make.log 2> make.err

stdout is saved in make.log and stderr is saved in make.err.

share|improve this answer
I'd change that to make 2>&1 | tee make.log. This way you still see the progress on the screen, and have the errors shown in the right place (single log file). – Izzy Jul 13 '12 at 9:50
@Izzy, depending on what comes out of make, you might get the output from the two streams mixed incoherently. As for following the progress, run tail -f in another terminal: tail -f make.log make.err. – Thor Jul 13 '12 at 11:30
Okay, then simply take my suggestion as an "alternative" instead of a "replacement". Guess both have their advantages, depending on your goals and habits ;) – Izzy Jul 13 '12 at 11:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.