To get a list of broken links on your system, do a
( find / -type l | xargs file ) | grep ‘broken symbolic link’ | cut -d”:” -f1
to get a filelist of broken links.
To get a list of broken links on your system, do a
( find / -type l | xargs file ) | grep ‘broken symbolic link’ | cut -d”:” -f1
to get a filelist of broken links.
Dude,
find / -L -type l
man find:
“-type” “l” symbolic link; this is never true if the -L option or the -follow option is in effect, unless the symbolic link is broken. If you want to search for symbolic links when -L is in effect, use -xtype.