hardlink command

Jon jdisnard at gmail.com
Sun Nov 10 21:00:29 UTC 2013


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 at gmail.com> 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 at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/devel
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct



-- 

-Jon


More information about the devel mailing list