Piping stderr to less: Redirect and view error streams
When you need to page through error output from a command, you’ll run into the issue that less only receives stdout by default. Error messages go to stderr (file descriptor 2), so they’ll still scroll past on your terminal while stdout gets paged. Basic approach: combine stderr with stdout make 2>&1 | less The 2>&1…
