Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

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

How can I suppress error messages sent to a console?

On: Ubuntu? Fedora? Debian? CentOS? RedHat?

share|improve this question

Edit the configuration of your syslog daemon: /etc/rsyslog.conf, /etc/syslog-ng.conf or similar. Look for "console".

share|improve this answer
command 2>/dev/null

for all distributions and even other unixes.

share|improve this answer
    
Thank you, but I'm searching for kernel.printk like solutions, so that "logging/warnings" will not occur to console – peter567 Apr 22 '11 at 8:40
    
then you should edit your question to make that clear – Kim Apr 22 '11 at 14:19

Your Answer

 
discard

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.