View Single Post
Old 16th April 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Lots of ways to tell what kernel you're running. During the boot itself, if you're nervous, you can use "boot -c" at the boot> prompt, which will stop the kernel after the first few messages, to enter the user kernel configurator. Use "quit" at the UKC> prompt to continue after confirmation of the kernel you are running.

Once up, the easiest way to see what you're running is to use "sysctl kern.version". You could use "dmesg" but ... dmesg's wrap, and if you are rebooting a system with a BIOS that does not clear RAM, you may have multiple dmesg's to sort through. On a freshly powered up system, "dmesg|head -3" should work. The sysctl always works, however.
Reply With Quote