![dmesh zoom dmesh zoom](https://cdn10.bigcommerce.com/s-ydm181c/products/9251/images/18467/burke-logo-trucker-cap-CAP16-7667_std__69827.1536667665.1280.1280.jpg)
Make sure to clear the ring buffer you should logged in as root or user with sudo privileges. Option -C ( -clear) allows you to clear the ring buffer: sudo dmesg -C
![dmesh zoom dmesh zoom](https://cdn10.bigcommerce.com/s-ydm181c/products/9243/images/18444/burke-sailor-beanie-BEAN01-3857_std__98904.1536667735.1280.1280.jpg)
The following command displays only the error and critical messages: dmesg -l err,crit Clearing the Ring Buffer # The option accepts one or more comma-separated levels.
![dmesh zoom dmesh zoom](https://cdn10.bigcommerce.com/s-ydm181c/products/9318/images/18595/burke-hargrave-trapeze-harness-TRA177-4171_std__16328.1536667618.440.500.jpg)
The -l ( -level ) option restricts the output to defined levels.