pathchk - Man Page

check whether file names are valid or portable

Examples (TL;DR)


pathchk [OPTION]... NAME...


Diagnose invalid or non-portable file names.


check for most POSIX systems


check for empty names and leading "-"


check for all POSIX systems (equivalent to -p -P)


display this help and exit


output version information and exit


Written by Paul Eggert, David MacKenzie, and Jim Meyering.

Reporting Bugs

GNU coreutils online help: <>
Report any translation bugs to <>

See Also

Full documentation <>
or available locally via: info '(coreutils) pathchk invocation'


January 2024 GNU coreutils 9.4