Table of Contents
cleanlinks - remove dangling symlinks and empty directories
cleanlinks [ options ] [ DIRECTORY ]
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.
- -h, --help
- display usage guide
- -V, --version
- output
version and copyright information
- -d, --directory
- remove symlinks to directories
- -m, --manual
- print 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.
http://bitbucket.org/superstition/cleanlinks/issues/
- Copyright (C) 2009 Erik Southworth
- 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 file, with or without modification, are
permitted in any medium without royalty provided the copyright notice and
this notice are preserved.
lndir(1) stow(1) xstow(1)
Table of Contents