When you are at a console, and logs do not let you work, use the command as sudo/root:
dmesg -n 1
and the logs will stop being shown in the console.
From man dmesg
:
-n, --console-level level
Set the level at which printing of messages is done to the con‐
sole. The level is a level number or abbreviation of the level
name. For all supported levels see the --help output.
For example, -n 1 or -n alert prevents all messages, except
emergency (panic) messages, from appearing on the console. All
levels of messages are still written to /proc/kmsg, so sys‐
logd(8) can still be used to control exactly where kernel mes‐
sages appear. When the -n option is used, dmesg will not print
or clear the kernel ring buffer.
If memory does not betray me,
dmesg -n 0
puts you back having messages in the console once you are finished with your job
rsyslog.conf
/syslog-ng.conf
can also be changed to stop logging to text/X consoles, though you may want to leave that as by default, as they provide invaluable feedback when you really need it.
Do bear in mind the actual log messages are just output to stdout
, and are not going to stdin
, so despite you losing meaningful visual feedback, you can still input commands in a go, like the above mentioned dmesg -n 1
. Just be sure that when you are typing command by touch on that situation not to use any potentially damaging commands like rm
. Stuff happens.
/var/log/kern.log
(or one of the similarly named old files).