disable console messages

Polytropon freebsd at edvax.de
Wed May 16 12:54:37 UTC 2012

On Wed, 16 May 2012 00:27:07 -0700, mahdieh salamat wrote:
> hi all. how I can disbale console messages and clear screen on boot?
> Thanks

The console messages can be suppressed by commenting out the

	*.err;kern.warning;auth.notice;mail.crit                /dev/console

in /etc/syslog.conf; if you want the messages redirected to
a file (instead of the screen), just provide a different
target, such as

	*.err;kern.*;auth.notice;mail.crit;console.info    /var/log/console.log

Make sure /var/log/console.log does exist: run

	# touch /var/log/console.log

There are more useful examples in that file. See "man 5 syslog.conf"
for details.

To also silence the kernel, you could add


or (and?)


to /boot/loader.conf. See "man 8 loader" and "man 5 loader.conf"
and "less /boot/defaults/loader.conf" for details.


Add the command "clear" or "/usr/bin/tput clear" at the end of
the /etc/rc script (not very clean, but works).

A quick web search brings up some inspiration:


You'll find a suggestion there on how to avoid fiddling with
the /etc/rc boot script (which should stay untouched due to
many reasons).

Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...

More information about the freebsd-questions mailing list