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(a)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(a)lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct:
http://fedoraproject.org/code-of-conduct
--
-Jon