How to pipe the stderr to less Posted on Mar 24, 2018 by Q A In QA 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 Read more: How to judge whether its STDERR is redirected to a file in a Bash script on Linux? How to print a line to STDERR and STDOUT in Bash? In Golang, how to print string to STDERR? How to make tee catch the stderr only in Linux? How to print a line to STDERR and STDOUT in Java? How to print a line to STDERR and STDOUT in Go? How to print a line to STDERR and STDOUT in C? How to print a line to STDERR and STDOUT in Perl?