Re: hardlink command

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

 



In my opinion the -c option is the most rational use of hardlink,
except where the files are empty.
In the later case touch can be used align the timestamps before you
decide to combine the inode.

$ touch -r test1 test2



Regards,
-Jon Disnard



On Sun, Nov 10, 2013 at 2:27 PM, Brendan Jones
<brendan.jones.it@xxxxxxxxx> wrote:
> On 11/10/2013 09:07 PM, Sergio Belkin wrote:
>>
>> hardlink   -n -v -v
>
>
> I would look at the modification datetime.
>
> studiodesktop:/tmp $ echo "test" > test1
> (wait at least a second)
> studiodesktop:/tmp $ echo "test" > test2
> studiodesktop:/tmp $ hardlink   -n -v -v tes*
>
>
> Directories 0
> Objects 2
>
> IFREG 2
> Comparisons 0
> Would link 0
> Would save 0
> studiodesktop:/tmp $ cp -rp test1 test2
> studiodesktop:/tmp $ hardlink   -n -v -v tes*
> Would link test1 to test2, would save 5
>
>
> Directories 0
> Objects 2
> IFREG 2
> Comparisons 1
> Would link 1
> Would save 4096
>
>
> --
> devel mailing list
> devel@xxxxxxxxxxxxxxxxxxxxxxx
> https://admin.fedoraproject.org/mailman/listinfo/devel
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct



-- 

-Jon
-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux