cleanlinks - remove dangling symlinks and empty directories
cleanlinks [ PATH ] [ options ]
Enforces the absence of dangling symbolic links; i.e., symbolic links pointing to targets which no longer exist.
The cleanlinks program searches the directory tree descended from the current directory or the directory rooted at the PATH given as an optional argument, for dangling symlinks, and removes them. Use the --directory option to remove symlinks that point to directories. Finally, it removes all empty directories in that directory tree.
-d, --directory: remove symlinks to directories
-h, --help: display usage guide
-V, --version: display version and copyright information
-m, --manual: output manual text
A message will be printed upon encountering each dangling symlink, directory symlink or empty directory. Cyclic symlinks emit the warning Too many levels of symbolic links and require removal manually.
Written by David Dawes. Rewritten by Erik Southworth.
Copyright (c) Erik Southworth, 2009,2010 This is free software: see the source for copying conditions. You are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. This is free documentation: copying and distribution of this manual, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.
stow(1) xstow(1) cp(1)