{
    "mode": "man",
    "parameter": "modinfo",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/modinfo/8/json",
    "generated": "2026-07-05T11:45:04Z",
    "synopsis": "modinfo [-0] [-F field] [-k kernel] [modulename|filename...]",
    "sections": {
        "NAME": {
            "content": "modinfo - Show information about a Linux Kernel module\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "modinfo [-0] [-F field] [-k kernel] [modulename|filename...]\n",
            "subsections": [
                {
                    "name": "modinfo -V",
                    "content": ""
                },
                {
                    "name": "modinfo -h",
                    "content": ""
                }
            ]
        },
        "DESCRIPTION": {
            "content": "modinfo extracts information from the Linux Kernel modules given on the command line. If the\nmodule name is not a filename, then the /lib/modules/version directory is searched, as is\nalso done by modprobe(8) when loading kernel modules.\n\nmodinfo by default lists each attribute of the module in form fieldname : value, for easy\nreading. The filename is listed the same way (although it's not really an attribute).\n\nThis version of modinfo can understand modules of any Linux Kernel architecture.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-V --version",
                    "content": "Print the modinfo version.\n",
                    "flag": "-V",
                    "long": "--version"
                },
                {
                    "name": "-F --field",
                    "content": "Only print this field value, one per line. This is most useful for scripts. Field names\nare case-insensitive. Common fields (which may not be in every module) include author,\ndescription, license, parm, depends, and alias. There are often multiple parm, alias and\ndepends fields. The special field filename lists the filename of the module.\n",
                    "flag": "-F",
                    "long": "--field"
                },
                {
                    "name": "-b --basedir",
                    "content": "Root directory for modules, / by default.\n",
                    "flag": "-b",
                    "long": "--basedir"
                },
                {
                    "name": "-k",
                    "content": "Provide information about a kernel other than the running one. This is particularly\nuseful for distributions needing to extract information from a newly installed (but not\nyet running) set of kernel modules. For example, you wish to find which firmware files\nare needed by various modules in a new kernel for which you must make an initrd/initramfs\nimage prior to booting.\n",
                    "flag": "-k"
                },
                {
                    "name": "-0 --null",
                    "content": "Use the ASCII zero character to separate field values, instead of a new line. This is\nuseful for scripts, since a new line can theoretically appear inside a field.\n",
                    "flag": "-0",
                    "long": "--null"
                },
                {
                    "name": "-a --author -d --description -l --license -p --parameters -n --filename",
                    "content": "These are shortcuts for the --field flag's author, description, license, parm and\nfilename arguments, to ease the transition from the old modutils modinfo.\n",
                    "flag": "-n",
                    "long": "--filename"
                }
            ]
        },
        "COPYRIGHT": {
            "content": "This manual page originally Copyright 2003, Rusty Russell, IBM Corporation. Maintained by Jon\nMasters and others.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "modprobe(8)\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "Jon Masters <jcm@jonmasters.org>\nDeveloper\n\nLucas De Marchi <lucas.de.marchi@gmail.com>\nDeveloper\n\n\n\nkmod                                         04/30/2026                                   MODINFO(8)",
            "subsections": []
        }
    },
    "summary": "modinfo - Show information about a Linux Kernel module",
    "flags": [
        {
            "flag": "-V",
            "long": "--version",
            "arg": null,
            "description": "Print the modinfo version."
        },
        {
            "flag": "-F",
            "long": "--field",
            "arg": null,
            "description": "Only print this field value, one per line. This is most useful for scripts. Field names are case-insensitive. Common fields (which may not be in every module) include author, description, license, parm, depends, and alias. There are often multiple parm, alias and depends fields. The special field filename lists the filename of the module."
        },
        {
            "flag": "-b",
            "long": "--basedir",
            "arg": null,
            "description": "Root directory for modules, / by default."
        },
        {
            "flag": "-k",
            "long": null,
            "arg": null,
            "description": "Provide information about a kernel other than the running one. This is particularly useful for distributions needing to extract information from a newly installed (but not yet running) set of kernel modules. For example, you wish to find which firmware files are needed by various modules in a new kernel for which you must make an initrd/initramfs image prior to booting."
        },
        {
            "flag": "-0",
            "long": "--null",
            "arg": null,
            "description": "Use the ASCII zero character to separate field values, instead of a new line. This is useful for scripts, since a new line can theoretically appear inside a field."
        },
        {
            "flag": "-n",
            "long": "--filename",
            "arg": null,
            "description": "These are shortcuts for the --field flag's author, description, license, parm and filename arguments, to ease the transition from the old modutils modinfo."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "modprobe",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/modprobe/8/json"
        }
    ]
}