Hands-on task
find: clean dangling links out of the assets
After several moves, the static files tree /srv/www/assets has symbolic links pointing nowhere at various depths — their targets were deleted long ago. Delete all broken links in the whole tree. Working links (to files and to directories), regular files and directories must not be touched.
- find
- -xtype l
- symbolic links
- broken links
- -delete