output redirect

Hi

i am compiling a source code by make command.
i want to redirect the output of make to a file but at the same time i want to see the output in terminal.

how to do this ?.

please suggest your idea.

thanks in advance.
Saravana

---------- Post updated at 05:24 PM ---------- Previous update was at 05:20 PM ----------

yeah.. i got it...

we can do like this

make  |tee -a make.log

thanks

For better results, redirect stderr also:

make 2>&1 | tee -a make.log

thanks otheus :slight_smile: