selkhateeb / hardlink

a simple command-line utility that implements hardlinks on Mac OsX
486 stars 45 forks source link

A way to determine which files are hard links? #26

Closed robstarbuck closed 9 years ago

robstarbuck commented 9 years ago

I created hardlinks in a directory and now I'm struggling to remember which are hard links and which are in fact the files themselves.

jamespayne commented 9 years ago

http://superuser.com/questions/12972/how-can-you-see-the-actual-hard-link-by-ls Maybe what you are looking for? There seems to be some heated debate about this in that post. I guess one way to get around this is make a note of it or make sure you are clear where you have done it.

Also, I think there is a limitation where you can only make a hardlink destination under an existing "real" folder so that might provide some sort of hint too. I think the limitations are relevant too. See Here. The hard link cannot be in the same root folder as the source.

robstarbuck commented 9 years ago

Thanks for that James, that's what I was looking for, good work on your project.

jamespayne commented 9 years ago

No worries, I haven't really contributed to the project. I just use it. Full credit should go to @selkhateeb and other people who have actually done the coding.