{
    "mode": "man",
    "parameter": "pathchk",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/pathchk/1/json",
    "generated": "2026-06-13T21:54:47Z",
    "synopsis": "pathchk [OPTION]... NAME...",
    "sections": {
        "NAME": {
            "content": "pathchk - check whether file names are valid or portable\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "pathchk [OPTION]... NAME...\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "Diagnose invalid or unportable file names.\n",
            "subsections": [
                {
                    "name": "-p",
                    "content": "",
                    "flag": "-p"
                },
                {
                    "name": "-P",
                    "content": "",
                    "flag": "-P"
                },
                {
                    "name": "--portability",
                    "content": "check for all POSIX systems (equivalent to -p -P)\n\n--help display this help and exit\n",
                    "long": "--portability"
                },
                {
                    "name": "--version",
                    "content": "output version information and exit\n",
                    "long": "--version"
                }
            ]
        },
        "AUTHOR": {
            "content": "Written by Paul Eggert, David MacKenzie, and Jim Meyering.\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/pathchk>\nor available locally via: info '(coreutils) pathchk invocation'\n\n\n\nGNU coreutils 8.32                          January 2026                                  PATHCHK(1)",
            "subsections": []
        }
    },
    "summary": "pathchk - check whether file names are valid or portable",
    "flags": [
        {
            "flag": "-p",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-P",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--portability",
            "arg": null,
            "description": "check for all POSIX systems (equivalent to -p -P) --help display this help and exit"
        },
        {
            "flag": "",
            "long": "--version",
            "arg": null,
            "description": "output version information and exit"
        }
    ],
    "examples": [],
    "see_also": [],
    "tldr": {
        "source": "official",
        "description": "Check the validity and portability of pathnames.",
        "examples": [
            {
                "description": "Check pathnames for validity in the current system",
                "command": "pathchk {{path1 path2 ...}}"
            },
            {
                "description": "Check pathnames for validity on a wider range of POSIX compliant systems",
                "command": "pathchk -p {{path1 path2 ...}}"
            },
            {
                "description": "Check pathnames for validity on all POSIX compliant systems",
                "command": "pathchk {{-p -P|--portability}} {{path1 path2 ...}}"
            },
            {
                "description": "Only check for empty pathnames or leading dashes (-)",
                "command": "pathchk -P {{path1 path2 ...}}"
            }
        ]
    }
}