{
    "mode": "man",
    "parameter": "mountpoint",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/mountpoint/1/json",
    "generated": "2026-06-10T16:10:42Z",
    "synopsis": "mountpoint [-d|-q] directory|file\nmountpoint -x device",
    "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": []
        }
    },
    "summary": "mountpoint - see if a directory or file is a mountpoint",
    "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"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "Test if a directory is a filesystem mountpoint.",
        "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}}"
            }
        ]
    }
}