CLEANLINKS(1)
π¦ CLEANLINKS(1) β General Commands Manual π¦
πΈ NAME πΈ
cleanlinksβ remove dangling symbolic links and empty directories. Thatβs the whole gig, bestie. β¨
π SYNOPSIS π
cleanlinks
Just run it like that. π«Ά
π DESCRIPTION π
Okay so cleanlinks starts in your current directory and searches the whole directory tree descended from it. Itβs looking for symbolic links whose targets do not exist β dangling links, basically β and it removes them. Then it removes all empty directories in that directory tree. π
Itβs lowkey iconic for cleaning up a shadow link tree created with lndir(1) after files have been removed from the real directory. Like, thatβs the vibe check itβs here for. π§
π DIAGNOSTICS π
A message will be printed upon encountering each dangling symlink and empty directory. So yeah, itβs gonna announce every single one. π
π SEE ALSO π
lndir(1)β the link-tree tool mentioned above. iykyk. π
π AUTHOR π
The version of the cleanlinks utility included in this X.Org Foundation release was originally written by David Dawes as a part of XFree86. β¨
This manual page was written by Colin Watson, originally for the Debian Project. π¦
This page came from imake 1.0.11, dated 2004-04-23. xoxo, bestie π
π¦ where this page comes from
- alpine 3.24: imake-doc 1.0.11-r0 Β· custom
- arch rolling: imake 1.0.11-1 Β· MIT-open-group AND HPND
- nixos 26.05: imake 1.0.11
- nixpkgs unstable: imake 1.0.11
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms