On Sat, 9 Nov 2024, Ben Koenig wrote:

You can also automate this to only give you the difference, here's a rough 
example.
dmesg > dmesg-before.log
# insert the device
dmesg > dmesg-after.log
diff dmesg-before.log dmesg-after.log

The -T option for dmesg is very useful, translating seconds since boot into readable timestamps.

So if you know what time (from the system's POV) you inserted or removed a device, you won't need to run a diff.

--
Paul Heinlein
[email protected]
45°22'48" N, 122°35'36" W

Reply via email to