bug-findutils
[Top][All Lists]
Advanced

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

Re: How to search for broken symbolic links?


From: James Youngman
Subject: Re: How to search for broken symbolic links?
Date: Sat, 20 Feb 2010 11:54:01 +0000

On Tue, Feb 16, 2010 at 4:01 AM, Eric Blake <address@hidden> wrote:
> According to Peng Yu on 2/15/2010 6:50 PM:
>> I don't find which option to use to search for broken symbolic links.
>> Could somebody let me know if there is such an option?
>>
>
> Yes.  Here's the POSIX way:
>
> find . -L -type l
>
> Or, if you want to use GNU extensions:
>
> find -follow -lname \*

Another GNU-specific method (interesting because it doesn't itself
traverse links to directories):

find -type l -xtype l

James.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]