From blog.amit-agarwal.co.in

Here is the command to test that all the directories in your path actually exist.
IFS=:;for p in $PATH; do test -d $p || echo $p; done

read more…