How to pipe the stderr to less

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

make | less

Use this command:

make 2>&1 | less

or, if you want stderr only:

make 2>&1 >/dev/null | less
Answered by anonymous.

Leave a Reply

Your email address will not be published. Required fields are marked *