Pathchk

pathchk checks a path for oddities including
 * permission problems
 * length
 * (optional) portability
 * (optional) awkwardness

Provided by
Most (all?) Linux distributions incorporate this from the GNU Coreutils: and use its man page

Related Commands

 * basename - get the base filename part of a pathname.
 * dirname - get the directory part of a pathname.
 * mktemp - Create a temporary