pathchk - check pathname
pathchk [-p] path ...
-p Check against POSIX rules
# Check the accessibility of file.c
pathchk -p file # Check posix compliance of file
Pathchk verifies path names and display error if paths are too long,
contain names that are too long, go thru a non-searchable directory or
contain an invalid character in names. If the -p flag is specified, the
POSIX rules apply instead of the rules of the current file system.