pathchk — check whether file names are valid or portable

Examples (TL;DR)


pathchk [OPTION]... NAME...


Diagnose invalid or unportable 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'


October 2019 GNU coreutils 8.31