The sp-globals program

sp-globals [/package/admin ...]

sp-globals traverses the directories given as its arguments (which should be category directories, or top-level package directories like /package), and compares the contents of the command/, bin/, and sbin/ subdirectories of each package to the contents of the global $SP_ROOT/command directory. If no directories are given, it searches $SP_ROOT/package. It reports any differences found: symlinks in /command that point to a path other than the corresponding file in an individual package, or missing symlinks in /command. You can set $SP_PER_PKG to a space-separated list of subdirectories (quoted for shell syntax, if necessary - the value is passed to the shell's eval command) to override the default "command bin sbin", and you can set $SP_GLOBAL to override the default "/command".