2009/11/8 Gonzalo Tornaria <torna...@math.utexas.edu>: > > On Sat, Nov 7, 2009 at 11:00 PM, Dr. David Kirkby > <david.kir...@onetel.net> wrote: >> But how did you find out these two were hard links? I'm not aware of any way >> to >> find if A is a hard link of B, unless one finds the inodes and compares them, >> which would be next to impossible where there are a lot of files. I assume >> there >> is some way you do this. > > $ ls -l sage-4.1.1/local/bin/python* > -rwxr-xr-x 2 tornaria tornaria 5528068 2009-09-04 21:45 > sage-4.1.1/local/bin/python > -rwxr-xr-x 2 tornaria tornaria 5528068 2009-09-04 21:45 > sage-4.1.1/local/bin/python2.6 > -rwxr-xr-x 1 tornaria tornaria 1419 2009-09-04 23:54 > sage-4.1.1/local/bin/python2.6-config > lrwxrwxrwx 1 tornaria tornaria 16 2009-10-30 01:25 > sage-4.1.1/local/bin/python-config -> python2.6-config > > The "2" in the second column indicates the number of hard link > references; you can guess they are the same file b/c they have the > same metadata --- you can confirm by looking at the inode numbers. > > > What I actually did, is check out the tarball: > > $ tar tvf sage-4.1.1-core2-jsmath_fonts-x86_64-Linux.tar.gz | grep ^h > hrwxr-xr-x tornaria/tornaria 0 2009-09-04 21:45 > sage-4.1.1-core2-jsmath_fonts-x86_64-Linux/local/bin/python link to > sage-4.1.1-core2-jsmath_fonts-x86_64-Linux/local/bin/python2.6
Sorry, I overlooked you had answered this, and asked it again. Dave --~--~---------~--~----~------------~-------~--~----~ To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---