{
    "content": [
        {
            "type": "text",
            "text": "# rmmod (man)\n\n## NAME\n\nrmmod - Simple program to remove a module from the Linux Kernel\n\n## SYNOPSIS\n\nrmmod [-f] [-s] [-v] [modulename]\n\n## DESCRIPTION\n\nrmmod is a trivial program to remove a module (when module unloading support is provided)\nfrom the kernel. Most users will want to use modprobe(8) with the -r option instead.\n\n## TLDR\n\n> Remove modules from the Linux kernel.\n\n- Remove a module from the kernel:\n  `sudo rmmod {{module_name}}`\n- Remove a module from the kernel and display verbose information:\n  `sudo rmmod --verbose {{module_name}}`\n- Remove a module from the kernel and send errors to syslog instead of `stderr`:\n  `sudo rmmod --syslog {{module_name}}`\n- Display help:\n  `rmmod --help`\n- Display version:\n  `rmmod --version`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (4 subsections)\n- **COPYRIGHT**\n- **SEE ALSO**\n- **AUTHORS**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "rmmod",
        "section": "",
        "mode": "man",
        "summary": "rmmod - Simple program to remove a module from the Linux Kernel",
        "synopsis": "rmmod [-f] [-s] [-v] [modulename]",
        "tldr_summary": "Remove modules from the Linux kernel.",
        "tldr_examples": [
            {
                "description": "Remove a module from the kernel",
                "command": "sudo rmmod {{module_name}}"
            },
            {
                "description": "Remove a module from the kernel and display verbose information",
                "command": "sudo rmmod --verbose {{module_name}}"
            },
            {
                "description": "Remove a module from the kernel and send errors to syslog instead of `stderr`",
                "command": "sudo rmmod --syslog {{module_name}}"
            },
            {
                "description": "Display help",
                "command": "rmmod --help"
            },
            {
                "description": "Display version",
                "command": "rmmod --version"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "-v",
                "long": "--verbose",
                "arg": null,
                "description": "Print messages about what the program is doing. Usually rmmod prints messages only if something goes wrong."
            },
            {
                "flag": "-f",
                "long": "--force",
                "arg": null,
                "description": "This option can be extremely dangerous: it has no effect unless CONFIGMODULEFORCEUNLOAD was set when the kernel was compiled. With this option, you can remove modules which are being used, or which are not designed to be removed, or have been marked as unsafe (see lsmod(8))."
            },
            {
                "flag": "-s",
                "long": "--syslog",
                "arg": null,
                "description": "Send errors to syslog instead of standard error."
            },
            {
                "flag": "-V",
                "long": "--version",
                "arg": null,
                "description": "Show version of program and exit."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "modprobe",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/modprobe/8/json"
            },
            {
                "name": "insmod",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/insmod/8/json"
            },
            {
                "name": "lsmod",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/lsmod/8/json"
            },
            {
                "name": "modinfo",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/modinfo/8/json"
            },
            {
                "name": "depmod",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/depmod/8/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-v --verbose",
                        "lines": 3,
                        "flag": "-v",
                        "long": "--verbose"
                    },
                    {
                        "name": "-f --force",
                        "lines": 5,
                        "flag": "-f",
                        "long": "--force"
                    },
                    {
                        "name": "-s --syslog",
                        "lines": 2,
                        "flag": "-s",
                        "long": "--syslog"
                    },
                    {
                        "name": "-V --version",
                        "lines": 2,
                        "flag": "-V",
                        "long": "--version"
                    }
                ]
            },
            {
                "name": "COPYRIGHT",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 9,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "rmmod - Simple program to remove a module from the Linux Kernel\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "rmmod [-f] [-s] [-v] [modulename]\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "rmmod is a trivial program to remove a module (when module unloading support is provided)\nfrom the kernel. Most users will want to use modprobe(8) with the -r option instead.\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "",
                "subsections": [
                    {
                        "name": "-v --verbose",
                        "content": "Print messages about what the program is doing. Usually rmmod prints messages only if\nsomething goes wrong.\n",
                        "flag": "-v",
                        "long": "--verbose"
                    },
                    {
                        "name": "-f --force",
                        "content": "This option can be extremely dangerous: it has no effect unless\nCONFIGMODULEFORCEUNLOAD was set when the kernel was compiled. With this option, you\ncan remove modules which are being used, or which are not designed to be removed, or have\nbeen marked as unsafe (see lsmod(8)).\n",
                        "flag": "-f",
                        "long": "--force"
                    },
                    {
                        "name": "-s --syslog",
                        "content": "Send errors to syslog instead of standard error.\n",
                        "flag": "-s",
                        "long": "--syslog"
                    },
                    {
                        "name": "-V --version",
                        "content": "Show version of program and exit.\n",
                        "flag": "-V",
                        "long": "--version"
                    }
                ]
            },
            "COPYRIGHT": {
                "content": "This manual page originally Copyright 2002, Rusty Russell, IBM Corporation. Maintained by Jon\nMasters and others.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "modprobe(8), insmod(8), lsmod(8), modinfo(8) depmod(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                                     RMMOD(8)",
                "subsections": []
            }
        }
    }
}