Re: Locating the broken links

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Mon, Jan 28, 2008 at 02:22:53AM +0200, Ioannis Vranos alleged:
> Garrick Staples wrote:
> >On Mon, Jan 28, 2008 at 01:45:43AM +0200, Ioannis Vranos alleged:
> >>Is there any command that I can use to find the broken links that point 
> >>to non-existent files?
> >
> >Not pretty, but should work fine:
> >
> >find . -type l 2>/dev/null| while read line;do  test -e "$line" || echo 
> >"$line";done
> 
> 
> I am trying "cleanlinks" and is cleaning lot of stuff, erasing links and 
> empty directories, I hope it will not mess my installation, especially 
> by doing the last.

On your entire OS?  Sounds like a pretty good way to break things.


Attachment: pgprxGi0ZkMtO.pgp
Description: PGP signature

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux