Sometimes while compiling C source code, the screen scrolls down if lot of warnings and errors are generated. This is uncomfortable as you can’t see all errors and warnings and you can’t attend to all warnings and warning at once and keep on recompiling. Instead you can use redirection facility supported by Bash shell to capture both messages printed on standard output and error to a same file. This method is more useful when you have huge build process to compile sources of your project.

Basically redirection of standard output is done as usual but the standard error is appended to More >