How to pipe the stderr to less

For example, try to less the error messages generated by the compiler with

make | less
asked Sep 12, 2013 by anonymous

1 Answer

Best answer

Use this command:

make 2>&1 | less

or, if you want stderr only:

make 2>&1 >/dev/null | less
answered Sep 12, 2013 by anonymous

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost