Hi Jarry,

searching for softlinks is pretty easy:

find / -type l

If my understanding of hardlinks is correct you cannot say which file is
the original and which file is the link. Both inodes just point to the
same datablocks. But you can identify those files by checking the
linkcount.

find / -type f -links '+1'

-Stefan

On Wed, Feb 03, 2010 at 07:37:36PM +0100, Jarry wrote:
> Hi,
> 
> just out of curiosity: is there any quick way to find all
> hard- and soft-links on a system? I just want to be sure
> they were all created after I moved system from the old disk
> to the new one...
> 
> Jarry
> -- 
> _______________________________________________________________
> This mailbox accepts e-mails only from selected mailing-lists!
> Everything else is considered to be spam and therefore deleted.
> 

Attachment: pgpjolqEkBy2P.pgp
Description: PGP signature

Reply via email to