Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know you can do:

sudo modprobe -v some_module

to check the version of /lib/modules/.../some_module.ko, but I'd still like to be able to check the version of any arbitrary kernel module that's not necessarily going to be loaded by modprobe.

share|improve this question
up vote 11 down vote accepted

modinfo - program to show information about a Linux Kernel module


modinfo module-file

General tip: At the bottom of a manpage and there is a section called "See Also". For modprobe, it lists modinfo. That section can be extremely useful.

share|improve this answer
Hm, better than strings ;) +1 – Node May 20 '09 at 16:49
Ah, totally forgot about this. Thanks. – Neil May 20 '09 at 16:51


strings some_module.ko | grep vermagic

Or use as mentioned by Ian Kelling modinfo.

share|improve this answer
I need this on a system without 'modinfo', so this was a good tip. For me, the command 'strings some_module.ko | grep version' actually returned the version of my module. – noisygecko Nov 6 '15 at 20:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.