proc_kmsg(5)
๐ proc_kmsg(5) ๐
okay bestie, so this one lives in the File Formats Manual section (that's section 5, iykyk) and it's all about one lil file that's basically the kernel's group chat ๐ฑโจ
๐ธ NAME ๐ธ
/proc/kmsg โ kernel messages ๐
๐ฆ DESCRIPTION ๐ฆ
/proc/kmsg ๐
okay so picture this: this file is literally the kernel's message drop ๐ฌ You can read it instead of using the syslog(2) system call to read kernel messages. Same tea, different cup, periodt โโจ
wait, hold on, bestie, read this part twice ๐ A process must have superuser privileges to read this file. No root, no read, no exceptions, no cap ๐ซ๐
and like, also โ only one process should read this file ๐ซถ It's giving "one bestie at a time on aux", fr fr. One reader, that's the vibe ๐
and the BIG one, the one that actually matters: this file should NOT be read if a syslog process is running which uses the syslog(2) system call facility to log kernel messages ๐ญ๐ซ Like, do not do it. Two people reading the same messages is gonna be messy, and not in a cute way. It's giving chaos energy and not the fun kind ๐
โจ also relevant: the information in this file is retrieved with the dmesg(1) program ๐
tl;dr vibe check: root only, one reader only, and back off if syslog is already holding the aux cord ๐
๐ฅ SEE ALSO ๐ฅ
proc(5)โ the mothership, go read her next, she ate ๐
and that's the whole page, bestie, you're literally a kernel-message-reading main character now ๐๐
little sign-off for the girlies keeping receipts: this one's from the Linux man-pages era, version 6.20 ๐ dated 2026-02-08, and it's pure iconic behavior, no notes ๐โจ๐ฆ
๐ฆ where this page comes from
- arch rolling: man-pages 6.20-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages 6.20
- ๐ the page's license: GPL-3.0-or-later
- Copyright 1994-1995, Daniel Quinlan <Daniel.Quinlan@linux.org>
- Copyright 2002-2017, Michael Kerrisk <mtk.manpages@gmail.com>
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms