{
    "mode": "man",
    "parameter": "GETCAP",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/GETCAP/8/json",
    "generated": "2026-05-30T07:07:40Z",
    "synopsis": "getcap [-v] [-n] [-r] [-h] filename [ ... ]",
    "sections": {
        "NAME": {
            "content": "getcap - examine file capabilities\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "getcap [-v] [-n] [-r] [-h] filename [ ... ]\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "getcap displays the name and capabilities of each specified file.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "-h",
                    "content": "",
                    "flag": "-h"
                },
                {
                    "name": "-n",
                    "content": "file's capabilities.\n",
                    "flag": "-n"
                },
                {
                    "name": "-r",
                    "content": "",
                    "flag": "-r"
                },
                {
                    "name": "-v",
                    "content": "filename\nOne file per line.\n",
                    "flag": "-v"
                }
            ]
        },
        "REPORTING BUGS": {
            "content": "Please report bugs via:\n\nhttps://bugzilla.kernel.org/buglist.cgi?component=libcap&listid=1047723&product=Tools&reso‐\nlution=---\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "capgetfile(3), captotext(3), capabilities(7), usernamespaces(7), setcap(8)\n\n\n\n2020-01-07                                    GETCAP(8)",
            "subsections": []
        }
    },
    "summary": "getcap - examine file capabilities",
    "flags": [
        {
            "flag": "-h",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-n",
            "long": null,
            "arg": null,
            "description": "file's capabilities."
        },
        {
            "flag": "-r",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-v",
            "long": null,
            "arg": null,
            "description": "filename One file per line."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "capgetfile",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/capgetfile/3/json"
        },
        {
            "name": "captotext",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/captotext/3/json"
        },
        {
            "name": "capabilities",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/capabilities/7/json"
        },
        {
            "name": "usernamespaces",
            "section": "7",
            "url": "https://www.chedong.com/phpMan.php/man/usernamespaces/7/json"
        },
        {
            "name": "setcap",
            "section": "8",
            "url": "https://www.chedong.com/phpMan.php/man/setcap/8/json"
        }
    ]
}