{
    "content": [
        {
            "type": "text",
            "text": "# mountpoint (man)\n\n## NAME\n\nmountpoint - see if a directory or file is a mountpoint\n\n## SYNOPSIS\n\nmountpoint [-d|-q] directory|file\nmountpoint -x device\n\n## DESCRIPTION\n\nmountpoint checks whether the given directory or file is mentioned in the\n/proc/self/mountinfo file.\n\n## TLDR\n\n> Test if a directory is a filesystem mountpoint.\n\n- Check if a directory is a mountpoint:\n  `mountpoint {{path/to/directory}}`\n- Check if a directory is a mountpoint without showing any output:\n  `mountpoint {{-q|--quiet}} {{path/to/directory}}`\n- Show major/minor numbers of a mountpoint's filesystem:\n  `mountpoint {{-d|--fs-devno}} {{path/to/directory}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (6 subsections)\n- **EXIT STATUS**\n- **ENVIRONMENT**\n- **NOTES**\n- **AUTHORS**\n- **SEE ALSO**\n- **REPORTING BUGS**\n- **AVAILABILITY**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "mountpoint",
        "section": "",
        "mode": "man",
        "summary": "mountpoint - see if a directory or file is a mountpoint",
        "synopsis": "mountpoint [-d|-q] directory|file\nmountpoint -x device",
        "tldr_summary": "Test if a directory is a filesystem mountpoint.",
        "tldr_examples": [
            {
                "description": "Check if a directory is a mountpoint",
                "command": "mountpoint {{path/to/directory}}"
            },
            {
                "description": "Check if a directory is a mountpoint without showing any output",
                "command": "mountpoint {{-q|--quiet}} {{path/to/directory}}"
            },
            {
                "description": "Show major/minor numbers of a mountpoint's filesystem",
                "command": "mountpoint {{-d|--fs-devno}} {{path/to/directory}}"
            }
        ],
        "tldr_source": "official",
        "flags": [
            {
                "flag": "-d",
                "long": "--fs-devno",
                "arg": null,
                "description": "Show the major/minor numbers of the device that is mounted on the given directory."
            },
            {
                "flag": "-q",
                "long": "--quiet",
                "arg": null,
                "description": "Be quiet - don’t print anything."
            },
            {
                "flag": "",
                "long": "--nofollow",
                "arg": null,
                "description": "Do not follow symbolic link if it the last element of the directory path."
            },
            {
                "flag": "-x",
                "long": "--devno",
                "arg": null,
                "description": "Show the major/minor numbers of the given blockdevice on standard output."
            },
            {
                "flag": "-V",
                "long": "--version",
                "arg": null,
                "description": "Display version information and exit."
            },
            {
                "flag": "-h",
                "long": "--help",
                "arg": null,
                "description": "Display help text and exit."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "mount",
                "section": "8",
                "url": "https://www.chedong.com/phpMan.php/man/mount/8/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-d --fs-devno",
                        "lines": 2,
                        "flag": "-d",
                        "long": "--fs-devno"
                    },
                    {
                        "name": "-q --quiet",
                        "lines": 2,
                        "flag": "-q",
                        "long": "--quiet"
                    },
                    {
                        "name": "--nofollow",
                        "lines": 2,
                        "long": "--nofollow"
                    },
                    {
                        "name": "-x --devno",
                        "lines": 2,
                        "flag": "-x",
                        "long": "--devno"
                    },
                    {
                        "name": "-V --version",
                        "lines": 2,
                        "flag": "-V",
                        "long": "--version"
                    },
                    {
                        "name": "-h --help",
                        "lines": 2,
                        "flag": "-h",
                        "long": "--help"
                    }
                ]
            },
            {
                "name": "EXIT STATUS",
                "lines": 11,
                "subsections": []
            },
            {
                "name": "ENVIRONMENT",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "NOTES",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHORS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "REPORTING BUGS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "AVAILABILITY",
                "lines": 6,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "mountpoint - see if a directory or file is a mountpoint\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "mountpoint [-d|-q] directory|file\n\nmountpoint -x device\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "mountpoint checks whether the given directory or file is mentioned in the\n/proc/self/mountinfo file.\n",
                "subsections": []
            },
            "OPTIONS": {
                "content": "",
                "subsections": [
                    {
                        "name": "-d --fs-devno",
                        "content": "Show the major/minor numbers of the device that is mounted on the given directory.\n",
                        "flag": "-d",
                        "long": "--fs-devno"
                    },
                    {
                        "name": "-q --quiet",
                        "content": "Be quiet - don’t print anything.\n",
                        "flag": "-q",
                        "long": "--quiet"
                    },
                    {
                        "name": "--nofollow",
                        "content": "Do not follow symbolic link if it the last element of the directory path.\n",
                        "long": "--nofollow"
                    },
                    {
                        "name": "-x --devno",
                        "content": "Show the major/minor numbers of the given blockdevice on standard output.\n",
                        "flag": "-x",
                        "long": "--devno"
                    },
                    {
                        "name": "-V --version",
                        "content": "Display version information and exit.\n",
                        "flag": "-V",
                        "long": "--version"
                    },
                    {
                        "name": "-h --help",
                        "content": "Display help text and exit.\n",
                        "flag": "-h",
                        "long": "--help"
                    }
                ]
            },
            "EXIT STATUS": {
                "content": "mountpoint has the following exit status values:\n\n0\nsuccess; the directory is a mountpoint, or device is block device on --devno\n\n1\nfailure; incorrect invocation, permissions or system error\n\n32\nfailure; the directory is not a mountpoint, or device is not a block device on --devno\n",
                "subsections": []
            },
            "ENVIRONMENT": {
                "content": "LIBMOUNTDEBUG=all\nenables libmount debug output.\n",
                "subsections": []
            },
            "NOTES": {
                "content": "The util-linux mountpoint implementation was written from scratch for libmount. The original\nversion for sysvinit suite was written by Miquel van Smoorenburg.\n",
                "subsections": []
            },
            "AUTHORS": {
                "content": "Karel Zak <kzak@redhat.com>\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "mount(8)\n",
                "subsections": []
            },
            "REPORTING BUGS": {
                "content": "For bug reports, use the issue tracker at https://github.com/karelzak/util-linux/issues.\n",
                "subsections": []
            },
            "AVAILABILITY": {
                "content": "The mountpoint command is part of the util-linux package which can be downloaded from Linux\nKernel Archive <https://www.kernel.org/pub/linux/utils/util-linux/>.\n\n\n\nutil-linux 2.37.2                            2021-06-02                                MOUNTPOINT(1)",
                "subsections": []
            }
        }
    }
}