{
    "mode": "man",
    "parameter": "getconf",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/getconf/1/json",
    "generated": "2026-06-03T00:20:48Z",
    "synopsis": "getconf -a\ngetconf [-v specification] systemvar\ngetconf [-v specification] pathvar pathname",
    "sections": {
        "NAME": {
            "content": "getconf - Query system configuration variables\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "getconf -a\n\ngetconf [-v specification] systemvar\n\ngetconf [-v specification] pathvar pathname\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "",
            "subsections": [
                {
                    "name": "-a",
                    "content": "Displays all configuration variables for the current system\nand their values.\n",
                    "flag": "-a"
                },
                {
                    "name": "-v",
                    "content": "Indicate the specification and version for which to obtain\nconfiguration variables.\n",
                    "flag": "-v"
                },
                {
                    "name": "system_var",
                    "content": "A system configuration variable, as defined by sysconf(3) or\nconfstr(3).\n"
                },
                {
                    "name": "path_var",
                    "content": "A system configuration variable as defined by pathconf(3). This\nmust be used with a pathname.\n\n"
                }
            ]
        },
        "AUTHOR": {
            "content": "getconf was written by Roland McGrath for the GNU C Library\n\nThis man page was written by Ben Collins <bcollins@debian.org> for the Debian GNU/Linux\nsystem.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "sysconf(3), pathconf(3), confstr(3)\n\n\n\n\n\n\n\n\n\n\n3rd Berkeley Distribution                      squeeze                                    GETCONF(1)",
            "subsections": []
        }
    },
    "summary": "getconf - Query system configuration variables",
    "flags": [
        {
            "flag": "-a",
            "long": null,
            "arg": null,
            "description": "Displays all configuration variables for the current system and their values."
        },
        {
            "flag": "-v",
            "long": null,
            "arg": null,
            "description": "Indicate the specification and version for which to obtain configuration variables."
        }
    ],
    "examples": [],
    "see_also": [
        {
            "name": "sysconf",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/sysconf/3/json"
        },
        {
            "name": "pathconf",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/pathconf/3/json"
        },
        {
            "name": "confstr",
            "section": "3",
            "url": "https://www.chedong.com/phpMan.php/man/confstr/3/json"
        }
    ],
    "tldr": {
        "source": "official",
        "description": "Get configuration values from your Linux system.",
        "examples": [
            {
                "description": "List [a]ll configuration values available",
                "command": "getconf -a"
            },
            {
                "description": "List the configuration values for a specific directory",
                "command": "getconf -a {{path/to/directory}}"
            },
            {
                "description": "Check if the system is 32-bit or 64-bit",
                "command": "getconf LONG_BIT"
            },
            {
                "description": "Check how many processes the current user can run at once",
                "command": "getconf CHILD_MAX"
            },
            {
                "description": "List every configuration value and then find patterns with the `grep` command (i.e every value with MAX in it)",
                "command": "getconf -a | grep MAX"
            }
        ]
    }
}