dmesg -- print or control the system message buffer


dmesg [-c | -n level | -s bufsize]


dmesg examines or controls the system message buffer. Only a user with appropriate privileges may modify the system message buffer parameters or contents.

Standard Options


If the user has appropriate privilege, clears the system message buffer contents after printing.

-n level 

If the user has appropriate privilege, sets the level at which logging of messages is done to the console.

-s bufsize 

uses a buffer of bufsize to query the system message buffer. This is 16392 by default.