{
    "content": [
        {
            "type": "text",
            "text": "# pathchk (man)\n\n## NAME\n\npathchk - check whether file names are valid or portable\n\n## SYNOPSIS\n\npathchk [OPTION]... NAME...\n\n## DESCRIPTION\n\nDiagnose invalid or unportable file names.\n\n## TLDR\n\n> Check the validity and portability of pathnames.\n\n- Check pathnames for validity in the current system:\n  `pathchk {{path1 path2 ...}}`\n- Check pathnames for validity on a wider range of POSIX compliant systems:\n  `pathchk -p {{path1 path2 ...}}`\n- Check pathnames for validity on all POSIX compliant systems:\n  `pathchk {{-p -P|--portability}} {{path1 path2 ...}}`\n- Only check for empty pathnames or leading dashes (-):\n  `pathchk -P {{path1 path2 ...}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION** (4 subsections)\n- **AUTHOR**\n- **REPORTING BUGS**\n- **COPYRIGHT**\n- **SEE ALSO**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "pathchk",
        "section": "",
        "mode": "man",
        "summary": "pathchk - check whether file names are valid or portable",
        "synopsis": "pathchk [OPTION]... NAME...",
        "tldr_summary": "Check the validity and portability of pathnames.",
        "tldr_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 ...}}"
            }
        ],
        "tldr_source": "official",
        "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": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 2,
                "subsections": [
                    {
                        "name": "-p",
                        "lines": 1,
                        "flag": "-p"
                    },
                    {
                        "name": "-P",
                        "lines": 1,
                        "flag": "-P"
                    },
                    {
                        "name": "--portability",
                        "lines": 4,
                        "long": "--portability"
                    },
                    {
                        "name": "--version",
                        "lines": 2,
                        "long": "--version"
                    }
                ]
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "REPORTING BUGS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 6,
                "subsections": []
            }
        ],
        "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": []
            }
        }
    }
}