{
    "mode": "man",
    "parameter": "nproc",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/nproc/1/json",
    "generated": "2026-06-15T11:29:38Z",
    "synopsis": "nproc [OPTION]...",
    "sections": {
        "NAME": {
            "content": "nproc - print the number of processing units available\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "nproc [OPTION]...\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Print the number of processing units available to the current process, which may be less than\nthe number of online processors\n\n--all  print the number of installed processors\n\n--ignore=N\nif possible, exclude N processing units\n\n--help display this help and exit\n",
            "subsections": [
                {
                    "name": "--version",
                    "content": "output version information and exit\n",
                    "long": "--version"
                }
            ]
        },
        "AUTHOR": {
            "content": "Written by Giuseppe Scrivano.\n",
            "subsections": []
        },
        "REPORTING BUGS": {
            "content": "GNU coreutils online help: <https://www.gnu.org/software/coreutils/>\nReport any translation bugs to <https://translationproject.org/team/>\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright © 2020 Free Software Foundation, Inc.  License GPLv3+: GNU GPL version 3  or  later\n<https://gnu.org/licenses/gpl.html>.\nThis  is free software: you are free to change and redistribute it.  There is NO WARRANTY, to\nthe extent permitted by law.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Full documentation <https://www.gnu.org/software/coreutils/nproc>\nor available locally via: info '(coreutils) nproc invocation'\n\n\n\nGNU coreutils 8.32                          January 2026                                    NPROC(1)",
            "subsections": []
        }
    },
    "summary": "nproc - print the number of processing units available",
    "flags": [
        {
            "flag": "",
            "long": "--version",
            "arg": null,
            "description": "output version information and exit"
        }
    ],
    "examples": [],
    "see_also": [],
    "tldr": {
        "source": "official",
        "description": "Print the number of processing units (normally CPUs) available.",
        "examples": [
            {
                "description": "Display the number of available processing units",
                "command": "nproc"
            },
            {
                "description": "Display the number of installed processing units, including any inactive ones",
                "command": "nproc --all"
            },
            {
                "description": "If possible, subtract a given number of units from the returned value",
                "command": "nproc --ignore {{count}}"
            }
        ]
    }
}