When you build a program or execute a shell command, the messages are often outputted to both standard output and standard error. If you want to send all ‘printf’ to a log file, use the following command:
make > make.log 2>&1
“2>&1” is the part that redirects standard error to standard out, allowing you to capture all messages.
|Support CNX Software - Donate via PayPal or become a Patron on Patreon|