dmesg

 

As a closing note, non-privileged users can check the messages in the kernel ring buffer by default with dmesg unless the kernel parameter kernel.dmesg_restrict has been explcitly set to 1.

 

# to read all messages in the buffer
marc:~> dmesg
.
# to read only messages from facility syslog showing facility & priority
marc:~> dmesg -­f syslog ­-x
.
# to read only messages from the facility kernel
marc:~> dmesg ­-k
.
# to read messages from facility daemon of priority warn and higher
marc:~> dmesg ­-k -­l warn
.
# to do the same but with human readable timestamps
marc:~> dmesg ­-k -­l warn -­T
.
# to do the same but without timestamps
marc:~> dmesg ­-k ­-l warn ­-t
.
# to read messages from syslogd rather than the kernel ring buffer
marc:~> dmesg ­-k -­l warn -­t -­S
.
# to do the same plus wait for new messages a la “tail ­f”
marc:~> dmesg ­-k -­l warn ­-t ­-S ­-w

 

<< logger