Skip to Content
Linux Administration Cookbook
book

Linux Administration Cookbook

by Adam K. Dean
December 2018
Beginner
826 pages
22h 54m
English
Packt Publishing
Content preview from Linux Administration Cookbook

dmesg (and the kernel logs)

dmesg is a way to print or control the kernel ring buffer according to its manual but, to you and me, it's a great way to quickly see if your hardware was detected by the kernel as it's initialized.

Running dmesg will print to stdout, so it's handy to pipe it into less:

$ dmesg | less

Once done, you should be able to search for specific strings. Continuing with our theme, we're going to look for Intel and see what's loaded:

[    2.221242] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI

If we look for ATA, we can also see our disks being detected:

[ 0.940242] ata2.01: ATA-6: VBOX HARDDISK, 1.0, max UDMA/133[ 0.940248] ata2.01: 4194304 sectors, multi 128: LBA [ 0.940807] ata1.00: ATA-6: VBOX HARDDISK, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Linux Security Cookbook - Second Edition

Practical Linux Security Cookbook - Second Edition

Tajinder Kalsi
Mastering Linux Administration

Mastering Linux Administration

Alexandru Calcatinge, Julian Balog

Publisher Resources

ISBN: 9781789342529Supplemental Content