Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When you compile kernel you normally see lines like

CC XX.o or LD XX

So, can I skip these messages? Only output errors or warnings generated by gcc

share|improve this question
How about make > /dev/null? Why would you want to do that actually? – peterph Apr 4 '13 at 10:12
@peterph to filter out "normal" messages – warl0ck Apr 4 '13 at 10:13
Yes, warnings/errors go to stderr. Or (in bash) make 2>&1 1>stdout.log | tee stderr.log - you'll get both logged, only stderr will be displayed. – peterph Apr 4 '13 at 10:28
@peterph But if the CC ... line got lost, you won't be able to figure out where the message comes from. – vonbrand Apr 4 '13 at 12:17
compilers usually include the file name in the warning/error message. – peterph Apr 4 '13 at 12:19

Looks like make -s works.

That would make the whole procedure "silent".

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.