CLEANLINKS(1)

🌸 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