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

Re: how to find all hard links of the same file



Hi,

or you can try to search for all files which have more than one link:

find </your/path/to/search/> -type f -links +1 -ls


-- 
lubo
http://www.linuxconfig.org/

On Mon, Sep 15, 2008 at 4:32 AM, Eduardo M KALINOWSKI
<eduardo@kalinowski.com.br> wrote:
> T o n g wrote:
>> Hi,
>>
>> If the hard link field of a file is more than one, how can I find out all
>> the other hard links to this file?
>>
>
> find <root of the filesystem where the file is> -xdev -samefile <path to
> file>
>
> Or something similar
>
> --
> To understand a program you must become both the machine and the program.
>
> Eduardo M KALINOWSKI
> eduardo@kalinowski.com.br
> http://move.to/hpkb
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
>


Reply to: