/usr/bin/pathchk
The pathchk utility checks whether each of the specified pathname arguments is valid or portable.